font-language-override
Limited availability73% of users
Overrides language-specific glyph selection in OpenType fonts. Ensures correct rendering for specific languages.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- Yes
Quick example
span.turkish { font-language-override: "TRK"; }Syntax
normal | <string>Examples
Use language-specific font variants
span.french {
font-language-override: "FRA";
font-family: "OpenType-Variable-Font";
/* Uses French OpenType features */
}Tell the font to use a specific language's typographic rules and glyphs.
Normalize language codes
.italian-text {
font-language-override: "ITA";
/* Overrides the HTML lang attribute for font selection */
}Use font-language-override when HTML lang differs from desired font behavior.
Common pitfalls
- Requires OpenType font supportfont-language-override only matters if the font has language-specific OpenType features. Most basic fonts don't.
- Use actual lang attribute insteadIn most cases, set the HTML lang attribute correctly instead of using font-language-override. It's clearer and benefits accessibility.
font-language-override browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage73%of people can use this27% use a browser without it.
Browsers
143+
34+
143+Mobile
143+Android
34+Android