Re: [css-writing-modes-3] central baseline of text with 'text-orientation: upright'

> Assume that the following inline text has 'text-orientation' set to 'upright':
> 
> K
> i
> W
> i
> 
> and assume that characters do not have the same character width. Now, where would the central baseline be drawn?
> 
> ... unless each and all glyphs must use the same character width and that the central baseline traverse the horizontal center of each glyph, there is a problem here.

After re-reading the spec, I think I understand your question. In this text in the spec:

> The central baseline, which typically crosses the center of the em box.

Glyphs with proportional widths are not “typical” here.


“K”, “i”, and “W” should have their origins at the center of the top edge. The next sentence:

> If the font is missing this baseline, it is assumed to be halfway between the ascender (over) and descender (under) edges of the em box.

and in this text, since baselines are vertical, for upright characters, you should consider the ascender (over) is the right side of each character, and the descender (under) is the left. “W” has wider ascender and descender than “i”, but the vertical origins (baselines) are center of both characters.

Does this explain?

/koji

Received on Wednesday, 3 September 2014 19:39:15 UTC