Skip to content

Commit c8851b5

Browse files
committed
[css-fonts-4] Copy the rest of Language-specific display from Level 3
1 parent fdd7d68 commit c8851b5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

css-fonts-4/Overview.bs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,6 +2715,29 @@ to specific font features.
27152715
<h3 id="language-specific-support">
27162716
Language-specific display</h3>
27172717

2718+
OpenType also supports language-specific glyph selection and
2719+
positioning, so that text can be displayed correctly in cases where
2720+
the language dictates a specific display behavior. Many languages
2721+
share a common script, but the shape of certain letters can vary
2722+
across those languages. For example, certain Cyrillic letters have
2723+
different shapes in Russian text than in Bulgarian. In Latin text,
2724+
it's common to render "fi" with an explicit fi-ligature that lacks a
2725+
dot on the "i". However, in languages such as Turkish which uses both
2726+
a dotted-i and a dotless-i, it's important to not use this ligature or
2727+
use a specialized version that contains a dot over the "i". The
2728+
example below shows language-specific variations based on stylistic
2729+
traditions found in Spanish, Italian and French orthography:
2730+
2731+
<div class="featex"><img alt="language specific forms, spanish" src="images/locl-1.png"></div>
2732+
<div class="featex"><img alt="language specific forms, italian" src="images/locl-2.png"></div>
2733+
<div class="featex"><img alt="language specific forms, french" src="images/locl-3.png"></div>
2734+
2735+
If the content language of the element is known according to the
2736+
rules of the <a href="https://www.w3.org/TR/CSS21/conform.html#doclanguage">document language</a>,
2737+
user agents are required to infer the OpenType language system from
2738+
the content language and use that when selecting and positioning
2739+
glyphs using an OpenType font.
2740+
27182741
<!-- previously in level 3, now moved to Level 4 -->
27192742
For OpenType fonts, in some cases it may be necessary to explicitly
27202743
declare the OpenType language to be used, for example when displaying

0 commit comments

Comments
 (0)