monks/font_style

The font-style CSS property sets whether a font should be styled with a normal, italic, or oblique face from its {{cssxref(“font-family”)}}.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const italic: #(String, String)
  • : Selects a font that is classified as italic. If no italic version of the face is available, one classified as oblique is used instead. If neither is available, the style is artificially simulated.
pub const normal: #(String, String)
  • : Selects a font that is classified as normal within a {{Cssxref(“font-family”)}}.
pub const oblique: #(String, String)
  • : Selects a font that is classified as oblique. If no oblique version of the face is available, one classified as italic is used instead. If neither is available, the style is artificially simulated.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for font-style

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for font-style. It will be wrapped in var() and have -- prepended.

Search Document