monks/font_variant_ligatures

The font-variant-ligatures CSS property controls which {{Glossary(“ligature”, “ligatures”)}} and {{Glossary(“contextual forms”)}} are used in the textual content of the elements it applies to. This leads to more harmonized forms in the resulting text.

Values

pub const common_ligatures: #(String, String)

common-ligatures value of font-variant-ligatures

pub const contextual: #(String, String)

contextual value of font-variant-ligatures

pub const discretionary_ligatures: #(String, String)

discretionary-ligatures value of font-variant-ligatures

pub const historical_ligatures: #(String, String)

historical-ligatures value of font-variant-ligatures

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const no_common_ligatures: #(String, String)
  • <discretionary-lig-values> - : These values control specific ligatures, specific to the font and defined by the type designer. They correspond to the OpenType values dlig. Two values are possible:
pub const no_contextual: #(String, String)
pub const no_discretionary_ligatures: #(String, String)
  • <historical-lig-values> - : These values control the ligatures used historically, in old books, like the German tz digraph being displayed as ꜩ. They correspond to the OpenType values hlig. Two values are possible:
pub const no_historical_ligatures: #(String, String)
  • <contextual-alt-values> - : These values control whether letters adapt to their context—that is, whether they adapt to the surrounding letters. These values correspond to the OpenType values calt. Two values are possible:
pub const none: #(String, String)
  • : This keyword specifies that all ligatures and contextual forms are disabled, even common ones.- <common-lig-values> - : These values control the most common ligatures, like for fi, ffi, th, or similar. They correspond to the OpenType values liga and clig. Two values are possible:
pub const normal: #(String, String)
  • : This keyword activates the usual ligatures and contextual forms needed for correct rendering. The ligatures and forms activated depend on the font, language, and kind of script. This is the default value.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for font-variant-ligatures

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-variant-ligatures. It will be wrapped in var() and have -- prepended.

Search Document