CKTIS / CSS
font-language-override — overriding a font’s language system
The font-language-override property selects an OpenType language system independently of the content language. It does not replace lang.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
font-language-override: normal | <string>;font-language-override overrides the font language system used for glyph selection and positioning. It neither translates content nor changes its language. Correct lang normally suffices.
The initial normal derives the system from the content language. <string> contains a case-sensitive OpenType tag, such as "SRB", not the code sr. Shorter tags are space-padded to four characters; unknown tags are ignored.
The property is inherited. CSS Fonts Level 4 does not define font-language-override as an @font-face descriptor. Visible effects depend on the font and browser. The example checks the computed value, not glyph appearance.
Examples
<!doctype html>
<meta charset="utf-8">
<title>font-language-override</title>
<style>
#sample { font-language-override: "SRB"; }
</style>
<p id="sample" lang="mk">Член 9</p>
<pre id="result"></pre>
<script>
const sample = document.getElementById("sample");
const value = getComputedStyle(sample)
.getPropertyValue("font-language-override");
document.getElementById("result").textContent = value;
</script>Result
"SRB"
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.