Revision Content

Summary

The -moz-font-feature-settings CSS property allows control over advanced typographic features in OpenType fonts.

{{ Xref_cssinitial() }}: {{ Cssxref("normal") }}

Applies to: all elements

{{ Xref_cssinherited() }}: yes

Percentages: n/a

Media: {{ Xref_cssvisual() }}

{{ Xref_csscomputed() }}: as specified

Syntax

-moz-font-feature-settings : normal | <string>

where <string> is defined as quoted list of OpenType feature tag-value pairs

Values

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.

Notes

This syntax for this property is still under development and will likely change as the CSS3 Fonts specification evolves. Authors should not rely on the current syntax being supported in future versions of Firefox.

Browser compatibility

Supported in Gecko 2.0 (Firefox 4.0), no support in other major browsers.