Skip to content

Commit ddea5fb

Browse files
committed
[css-inline] Add section about shaping. Current text based on known examples thus far, may change with more information.
1 parent 4401015 commit ddea5fb

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

css-inline/Overview.bs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,16 @@ Font size of drop cap = ((N-1) * line-height + [cap-height of para] * [font size
291291

292292
The line height used in this calculation is the 'line-height' of the containing block (or, in the case where a baseline grid is in use, the baseline-to-baseline spacing required by the baseline grid [[CSS3-LINE-GRID]]). The contents of the lines spanned, and therefore any variation in their heights and positions, is not accounted for.
293293

294+
<h4 id="initial-letter-shaping">Shaping and Glyph Selection</h4>
295+
296+
When 'initial-letter' is not ''normal'', shaping does not occur across the box's boundaries,
297+
as if the zero-width non-joiner (U+200C) were inserted before/after the <a>initial letter</a>.
298+
For example, if the first letter of the Farsi word “پس” were styled with ''initial-letter: 2 1'',
299+
both letters would be styled in their isolated forms,
300+
with “پ” as the initial letter, followed by the normally-styled “س”.
301+
302+
Issue: Are there other things we need to consider here?
303+
294304
<h3 id="initial-letter-exclusions">Space Around Initial Letters</h3>
295305

296306
The glyph(s) of an initial letter do not always fit within the specified sink. For example, if an initial letter has a descender, it could crash into the (n+1)th line of text. This is not desirable.

0 commit comments

Comments
 (0)