font-language-override
Quick Summary for font-language-override
The font-language-override CSS property controls the use of language-specific glyphs in a typeface.
Code Usage for font-language-override

<pre class="brush: css notranslate"><code><span class="token comment">/ Keyword value /</span> <span class="token property">font-language-override</span><span class="token punctuation">:</span> normal<span class="token punctuation">;</span> <span class="token comment">/ &lt;string&gt; values /</span> <span class="token property">font-language-override</span><span class="token punctuation">:</span> <span class="token string">"ENG"</span><span class="token punctuation">;</span> <span class="token comment">/ Use English glyphs /</span> <span class="token property">font-language-override</span><span class="token punctuation">:</span> <span class="token string">"TRK"</span><span class="token punctuation">;</span> <span class="token comment">/ Use Turkish glyphs /</span> <span class="token comment">/ Global values /</span> <span class="token property">font-language-override</span><span class="token punctuation">:</span> initial<span class="token punctuation">;</span> <span class="token property">font-language-override</span><span class="token punctuation">:</span> inherit<span class="token punctuation">;</span> <span class="token property">font-language-override</span><span class="token punctuation">:</span> revert<span class="token punctuation">;</span> <span class="token property">font-language-override</span><span class="token punctuation">:</span> unset<span class="token punctuation">;</span> </code></pre>

More Details for font-language-override

font-language-override

The font-language-override CSS property controls the use of language-specific glyphs in a typeface.

/* Keyword value */ font-language-override: normal;  /* <string> values */ font-language-override: "ENG";  /* Use English glyphs */ font-language-override: "TRK";  /* Use Turkish glyphs */  /* Global values */ font-language-override: initial; font-language-override: inherit; font-language-override: revert; font-language-override: unset; 

By default, HTML's lang attribute tells browsers to display glyphs designed specifically for that language. For example, a lot of fonts have a special character for the digraph fi that merge the dot on the "i" with the "f." However, if the language is set to Turkish the typeface will likely know not to use the merged glyph; Turkish has two versions of the "i," one with a dot (i) and one without (ı), and using the ligature would incorrectly transform a dotted "i" into a dotless "i."

The font-language-override property lets you override the typeface behavior for a specific language. This is useful, for example, when the typeface you're using lacks proper support for the language. For instance, if a typeface doesn't have proper rules for the Azeri language, you can force the font to use Turkish glyphs, which follow similar rules.

Syntax

The font-language-override property is specified as the keyword normal or a <string>.

Values

normal

Tells the browser to use font glyphs that are appropriate for the language specified by the lang attribute. This is the default value.

<string>

Tells the browser to use font glyphs that are appropriate for the language specified by the string. The string must match a language tag found in the OpenType language system. For example, "ENG" is English, and "KOR" is Korean.

Formal definition

Initial valuenormal
Applies toall elements. It also applies to ::first-letter and ::first-line.
Inheritedyes
Computed valueas specified
Animation typediscrete

Formal syntax

normal | <string>

Examples

Using Danish glyphs

HTML
<p class="para1">Default language setting.</p> <p class="para2">This is a string with the <code>font-language-override</code> set to Danish.</p> 
CSS
p.para1 {   font-language-override: normal; }  p.para2 {   font-language-override: "DAN"; } 
Result

Specifications

Specification
CSS Fonts Module Level 4 # font-language-override-prop

See also

font-variant, font-variant-position, font-variant-east-asian, font-variant-caps, font-variant-ligatures, font-variant-numeric, font-variant-alternates, font-synthesis, font-kerning. Select your preferred language English (US)EspañolFrançais日本語中文 (简体) Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
therock Somewhere along this crazy road I learned (often times the hard way) the most important things I can do is be authentic, trust my gut, be the hardest worker in the room, celebrate the mistakes, be a grateful man and always remember that it's nice to be important, but it's more important to be nice.
The Rock
Latest News
## 🚀 AI Giants Hit Bullseye: Anthropic & OpenAI Achieve Product-Market Fit Anthropic and OpenAI have reached a significant milestone, finding product-market fit with their AI technologies, which means their products effectively meet the needs of their customers, driving growth and adoption. This achievement showcases the practical value of their innovations, enabling businesses and individuals to leverage AI for enhanced productivity and efficiency. With this alignment of product and market needs, these companies are poised to transform industries and shape the future of technology.