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 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 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 valuesdlig. 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 valueshlig. 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 valuescalt. 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 forfi,ffi,th, or similar. They correspond to the OpenType valuesligaandclig. 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_layer: #(String, String)