monks/font_variant_caps

The font-variant-caps CSS property controls the use of alternate glyphs used for small or petite capitals or for titling.

Values

pub const all_petite_caps: #(String, String)
  • : Enables display of petite capitals for both upper and lowercase letters (OpenType features: c2pc, pcap).
pub const all_small_caps: #(String, String)
  • : Enables display of small capitals for both upper and lowercase letters (OpenType features: c2sc, smcp).
pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const normal: #(String, String)
  • : Deactivates of the use of alternate glyphs.
pub const petite_caps: #(String, String)
  • : Enables display of petite capitals (OpenType feature: pcap).
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for font-variant-caps

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const small_caps: #(String, String)
  • : Enables display of small capitals (OpenType feature: smcp). Small-caps glyphs typically use the form of uppercase letters but are displayed using the same size as lowercase letters.
pub const titling_caps: #(String, String)
  • : Enables display of titling capitals (OpenType feature: titl). Uppercase letter glyphs are often designed for use with lowercase letters. When used in all uppercase titling sequences they can appear too strong. Titling capitals are designed specifically for this situation.
pub const unicase: #(String, String)
  • : Enables display of mixture of small capitals for uppercase letters with normal lowercase letters (OpenType feature: unic).
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

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

Search Document