The CSS -moz-font-feature-settings Mozilla extension property allows control over advanced typographic features in OpenType fonts.
Values[]
| Value | Description |
|---|---|
normal |
Text is laid out using default settings. |
<string> |
When rendering text, the list of OpenType feature tags is passed to the text layout engine to enable or disable font features. For example, tagx=1 implies that the OpenType feature tagx is enabled. Using a value of 0 disables a given feature. For non-Boolean OpenType features (e.g. stylistic alternates), the value implies a particular glyph to be selected.
|
Examples:
/* use small-cap alternate glyphs */
.smallcaps {
-moz-font-feature-settings:"smcp=1";
}
/* convert both upper and lowercase to small caps (affects punctuation also) */
.allsmallcaps {
-moz-font-feature-settings:"c2sc=1, smcp=1";
}
/* enable historical forms */
.hist {
-moz-font-feature-settings:"hist=1";
}
/* disable common ligatures, usually on by default */
.noligs {
-moz-font-feature-settings:"liga=0";
}
/* enable tabular (monospaced) figures */
td.tabular {
-moz-font-feature-settings:"tnum=1";
}
/* enable automatic fractions */
.fractions {
-moz-font-feature-settings:"frac=1";
}
