Normally, authors can control the use of language-specific glyph substitutions and positioning by setting the content language of an element, as described above:
<!-- Display text using S'gaw Karen specific features -->
<p lang="ksw">...</p>
In some cases, authors may need to specify a language system that differs from the content language, for example due to the need to mimic another language’s typographic traditions. 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.
Name:
font-language-override
Value:
normal | <string>
Initial:
normal
Applies to:
all elements
Inherited:
yes
Percentages:
N/A
Media:
visual
Computed value:
as specified
Animatable:
no
Syntax
font-language-override : normal | <string>
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
Examples
1
<body lang="mk"> <!-- Macedonian lang code-->
2
body { font-language-override: "SRB"; /* Serbian OpenType language tag */}
3
<h4>Member9</h4>
4
<p>Nopersonshall besubjected to arbitraryarrest, detentionorpersecution.