This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

font-language-override

Summary

The ‘font-language-override’ property allows authors to explicitly specify the language system of the font, overriding the language system implied by the content language.

Overview table

Initial value
normal
Applies to
all elements
Inherited
Yes
Media
visual
Computed value
as specified
Animatable
No
CSS Object Model Property
font
Percentages
N/A

Syntax

  • font-language-override: <string>
  • font-language-override: normal

Values

normal
specifies that when rendering with OpenType fonts, the content language of the element is used to infer the OpenType language system
<string>
single three-letter case-sensitive OpenType language system tag, specifies the OpenType language system to be used instead of the language system implied by the language of the element

Usage

 OpenType supports language-specific glyph selection and positioning, so that text can be displayed correctly in cases where the language dictates a specific display behavior. Authors can control the use of language-specific glyph substitutions and positioning by setting the content language of an element.

<!-- Display text using S'gaw Karen specific features --> <p lang="ksw">...</p>

Notes

Use of invalid OpenType language system tags must not generate a parse error but must be ignored when doing glyph selection and placement.

See also

Related articles

CSS Font

Fonts

Text

External resources

Microsoft OpenType Layout Tag Registry