Skip to content

Commit caf1e47

Browse files
committed
[css-text-3] More precisely define interaction of letter-spacing and ligature font features. #2644
1 parent a58db91 commit caf1e47

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

css-text-3/Overview.bs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,8 @@ Word Spacing: the 'word-spacing' property</h3>
19451945
<p>This property specifies additional spacing (commonly called <dfn export>tracking</dfn>)
19461946
between adjacent <a>typographic character units</a>.
19471947
Letter-spacing is applied after
1948-
<a href="https://www.w3.org/TR/css-writing-modes-3/#text-direction">bidi reordering</a>
1948+
<a href="https://www.w3.org/TR/css-writing-modes/#text-direction">bidi reordering</a> [[CSS-WRITING-MODES-3]]
1949+
and <a href="https://www.w3.org/TR/css-fonts/#font-kerning-prop">kerning</a> [[CSS-FONTS-3]]
19491950
and is in addition to any 'word-spacing'.
19501951
Depending on the justification rules in effect,
19511952
user agents may further increase or decrease the space between <a>typographic character units</a>
@@ -2057,9 +2058,13 @@ Word Spacing: the 'word-spacing' property</h3>
20572058
<p>When the effective spacing between two characters is not zero
20582059
(due to either <a href="#text-justify-property">justification</a>
20592060
or a non-zero value of 'letter-spacing'),
2060-
user agents should not apply optional ligatures.
2061-
However, kerning should still be applied
2062-
(see 'font-kerning' [[CSS-FONTS-3]]).
2061+
user agents should not apply optional ligatures,
2062+
i.e. those that are not defined as required
2063+
for fundamentally correct glyph shaping.
2064+
However, ligatures and other font features
2065+
specified via the low-level 'font-feature-settings' property
2066+
take precedence over this rule.
2067+
See [[css-fonts-3#feature-precedence]].
20632068

20642069
<div class="example">
20652070
For example, if the word “filial” is letter-spaced,
@@ -2071,6 +2076,13 @@ Word Spacing: the 'word-spacing' property</h3>
20712076
</figure>
20722077
</div>
20732078

2079+
Note: In OpenType, required ligatures are expected
2080+
to be associated to the <code>rlig</code> feature.
2081+
All other ligatures are therefore considered optional.
2082+
In some cases, however, UA or platform heuristics
2083+
apply additional ligatures in order to handle broken fonts;
2084+
this specification does not define or override such exceptional handling.
2085+
20742086
<h4 id="cursive-tracking">
20752087
Cursive Scripts</h4>
20762088

@@ -3128,7 +3140,7 @@ Acknowledgements</h2>
31283140
Laurie Anna Edlund, Ben Errez, Yaniv Feinberg, Arye Gittelman, Ian
31293141
Hickson, Martin Heijdra, Richard Ishida, Masayasu Ishikawa,
31303142
Michael Jochimsen, Eric LeVine, Ambrose Li, Håkon Wium Lie, Chris Lilley,
3131-
Ken Lunde, Nat McCully, IM Mincheol, Shinyu Murakami, Paul Nelson,
3143+
Ken Lunde, Myles Maxfield, Nat McCully, IM Mincheol, Shinyu Murakami, Paul Nelson,
31323144
Chris Pratley, Xidorn Quan, Marcin Sawicki,
31333145
Arnold Schrijver, Rahul Sonnad, Alan Stearns, Michel Suignard, Takao Suzuki,
31343146
Frank Tang, Chris Thrasher, Etan Wexler, Chris Wilson, Masafumi Yabe

0 commit comments

Comments
 (0)