CSS - font-language-override Property



The font-language-override property of CSS is used to override the typeface behaviour for a particular language.

Possible Values

  • normal: Specifies the browser to use the glyphs for the language specified by the lang attribute. It is the default value.

  • <string>: Specifies the browser to use the glyphs for the language specified by the <string>. For example: "KOR" for Korean, "ENG" for English, "DAN" for Danish, etc.

Applies to

All the HTML elements.

DOM Syntax

object.style.fontLanguageOverride = "normal | <string>";

CSS font-language - Basic Example

Here is an example:

<html>
<head>
<style>
    .my-text {
    font-family: Arial, sans-serif;
    font-language-override: "TRK";
    }
</style>
</head>
<body>
    <p>This is some text with language-specific glyphs: ğüşöçİ</p>
    <p class="my-text">This is some text with language-specific glyphs: ğüşöçİ</p>
</body>
</html>
Advertisements