monks/font_variant_numeric

The font-variant-numeric CSS property controls the usage of alternate glyphs for numbers, fractions, and ordinal markers.

Values

pub const diagonal_fractions: #(String, String)

diagonal-fractions value of font-variant-numeric

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

lining-nums value of font-variant-numeric

pub const normal: #(String, String)
  • : This keyword leads to the deactivation of the use of such alternate glyphs.
pub const oldstyle_nums: #(String, String)
  • <numeric-spacing-values> - : These values controls the sizing of figures used for numbers. Two values are possible:
pub const ordinal: #(String, String)
  • : This keyword forces the use of special glyphs for the ordinal markers, like 1st, 2nd, 3rd, 4th in English or a 1a in Italian. It corresponds to the OpenType values ordn.
pub const proportional_nums: #(String, String)

proportional-nums value of font-variant-numeric

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

Enter a raw string value for font-variant-numeric

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const slashed_zero: #(String, String)
  • : This keyword forces the use of a 0 with a slash; this is useful when a clear distinction between O and 0 is needed. It corresponds to the OpenType values zero.- <numeric-figure-values> - : These values control the figures used for numbers. Two values are possible:
pub const stacked_fractions: #(String, String)
pub const tabular_nums: #(String, String)
  • <numeric-fraction-values> - : These values controls the glyphs used to display fractions. Two values are possible:
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document