mozilla

Revision 22284 of font-feature-settings

  • Revision slug: CSS/font-feature-settings
  • Revision title: font-feature-settings
  • Revision id: 22284
  • Created:
  • Creator: Jdaggett
  • Is current revision? No
  • Comment 1 words added

Revision Content

{{ CSSMozExtensionRef() }}{{ gecko_minversion_header("2.0") }}

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.

Examples

 

 

Browser compatibility

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

Specifications

Revision Source

<p>{{ CSSMozExtensionRef() }}{{ gecko_minversion_header("2.0") }}</p>
<h3>Summary</h3>
<p>The<code> -moz-font-feature-settings </code>CSS property allows control over advanced typographic features in OpenType fonts.</p>
<ul> <li>{{ Xref_cssinitial() }}: {{ Cssxref("normal") }}</li> <li>Applies to: all elements</li> <li>{{ Xref_cssinherited() }}: yes</li> <li>Percentages: n/a</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}: as specified</li>
</ul>
<h3>Syntax</h3>
<p>-moz-font-feature-settings : normal | &lt;string&gt;</p>
<p>where &lt;string&gt; is defined as quoted list of OpenType feature tag-value pairs</p><h3>Values</h3>
<dl> <dt>normal</dt> <dd>Text is laid out using default settings.</dd> <dt>&lt;string&gt;</dt> <dd>When rendering text, the list of OpenType feature tags is passed to the text layout engine to enable or disable font features.</dd>
</dl>
<h3>Examples</h3>
<p> </p>
<p> </p>
<h3>Browser compatibility</h3>
<p>Supported in Gecko 2.0 (Firefox 4.0), no support in other major browsers.</p>
<h3>Specifications</h3>
<ul> <li><a class=" external" href="http://dev.w3.org/csswg/css3-fonts/#font-feature-settings-prop" title="http://dev.w3.org/csswg/css3-fonts/#font-feature-settings-prop">CSS3 Fonts</a> Editor's Draft</li> <li> <p><a class=" external" href="http://www.microsoft.com/typography/otspec/featurelist.htm" title="http://www.microsoft.com/typography/otspec/featurelist.htm">OpenType Feature Tags</a> list</p> </li>
</ul>
Revert to this revision