Csswg-drafts: [css-inline-3] Alternative initial-letter-align based on glyph bounds

Created on 16 Jun 2020  Â·  6Comments  Â·  Source: w3c/csswg-drafts

Kindle has had a version of initial-letter implemented for several years, but the default alignment follows a behavior which doesn't seem possible with the initial-letter spec. Instead of using font-wide metrics for alignment, it measures the specific glyph bounds of the text under initial-letter. It then can align the lowest point of the glyph with the baseline of the body text.

The behavior can be viewed in our KindleCreate app (image below):

Screen Shot 2020-06-16 at 10 42 12 AM

You can see the initial-letter (or drop cap as it's called here) actually takes up the 3 lines that are specified by the author. While a similar implementation in Safari would take up 4 since the descender knocks out an extra line.

Screen Shot 2020-06-16 at 10 50 43 AM

I'm working on asking some of publisher contacts what the expected behavior would be when characters with descenders are used with initial-letter, but in the meantime wanted to get a feel for other people's thoughts here.

Commenter Response Pending css-inline-3

Most helpful comment

If you had another paragraph under that one with the same settings and an 'i' as the initial letter, would the glyph of the 'i' appear larger? The design we arrived at tries to ensure that the size of the initial letter does not change depending on the presence or absence of a descender.

All 6 comments

If you had another paragraph under that one with the same settings and an 'i' as the initial letter, would the glyph of the 'i' appear larger? The design we arrived at tries to ensure that the size of the initial letter does not change depending on the presence or absence of a descender.

Yes, the glyphs appear larger/smaller based on the character chosen.

Yeah, one of our foundational rules in typesetting is visual consistency. The line-height should not change from page to page, even to fix widows or orphans. If I create a dropcap, its point size should not change depending which letter it happens to be. The whole idea of initial letters is aligning to the cap height and baseline, not taking up a certain number of lines of space.

This is also unlikely to be a large problem in implementations using Latin scripts, as initial letters are usually capitals, and capitals seldom have descenders.

The whole idea of initial letters is aligning to the cap height and baseline, not taking up a certain number of lines of space.

But couldn't there be a case where the designer wants a consistent numbers of lines? Are we ignoring that use case?

This is also unlikely to be a large problem in implementations using Latin scripts, as initial letters are usually capitals, and capitals seldom have descenders.

Agree, though "Q" seems to be the exception in the many fonts.

But couldn't there be a case where the designer wants a consistent numbers of lines? Are we ignoring that use case?

I don't believe I've found examples in the wild like that, but I'd be quite interested in seeing them! The examples we've found in books about typography, in tools like InDesign, and in books and magazines around the world all seem to suggest that the cap height/baseline alignment is what is desired.

@stantonma Thinking to close this issue no-change based on @dauwhe’s arguments. Do you disagree?

Was this page helpful?
0 / 5 - 0 ratings