monks/font_variant

The font-variant CSS shorthand property allows you to set all the font variants for a font.

You can also set the <font-variant-css2> values of font-variant defined in CSS Level 2.1, (that is, normal or small-caps), by using the font shorthand.

Values

pub const all_petite_caps: #(String, String)

all-petite-caps value of font-variant

pub const all_small_caps: #(String, String)

all-small-caps value of font-variant

pub const common_ligatures: #(String, String)

common-ligatures value of font-variant

pub const contextual: #(String, String)

contextual value of font-variant

pub const diagonal_fractions: #(String, String)

diagonal-fractions value of font-variant

pub const discretionary_ligatures: #(String, String)

discretionary-ligatures value of font-variant

pub const full_width: #(String, String)

full-width value of font-variant

pub const historical_forms: #(String, String)

historical-forms value of font-variant

pub const historical_ligatures: #(String, String)

historical-ligatures value of font-variant

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const jis04: #(String, String)

jis04 value of font-variant

pub const jis78: #(String, String)

jis78 value of font-variant

pub const jis83: #(String, String)

jis83 value of font-variant

pub const jis90: #(String, String)

jis90 value of font-variant

pub const lining_nums: #(String, String)

lining-nums value of font-variant

pub const no_common_ligatures: #(String, String)

no-common-ligatures value of font-variant

pub const no_contextual: #(String, String)

no-contextual value of font-variant

pub const no_discretionary_ligatures: #(String, String)

no-discretionary-ligatures value of font-variant

pub const no_historical_ligatures: #(String, String)

no-historical-ligatures value of font-variant

pub const none: #(String, String)
  • : Sets the value of the font-variant-ligatures as none and the values of the other longhand properties as normal, their initial value.
pub const normal: #(String, String)
  • : Specifies a normal font face. Each longhand property has an initial value of normal.
pub const oldstyle_nums: #(String, String)

oldstyle-nums value of font-variant

pub const ordinal: #(String, String)

ordinal value of font-variant

pub const petite_caps: #(String, String)

petite-caps value of font-variant

pub const proportional_nums: #(String, String)

proportional-nums value of font-variant

pub const proportional_width: #(String, String)

proportional-width value of font-variant

pub fn raw(value: String) -> #(String, String)

Enter a raw string value for font-variant

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const ruby: #(String, String)

ruby value of font-variant

pub const simplified: #(String, String)

simplified value of font-variant

pub const slashed_zero: #(String, String)

slashed-zero value of font-variant

pub const small_caps: #(String, String)
  • : Specifies the keywords and functions related to the font-variant-caps longhand property. The small-caps value is the only non-normal font variant valid within the {{cssxref(“font”)}} shorthand property.
pub const stacked_fractions: #(String, String)

stacked-fractions value of font-variant

pub const tabular_nums: #(String, String)

tabular-nums value of font-variant

pub const titling_caps: #(String, String)

titling-caps value of font-variant

pub const traditional: #(String, String)

traditional value of font-variant

pub const unicase: #(String, String)

unicase value of font-variant

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

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

Search Document