Re: [css-text] Shaping Isolation and Layout Separation of Inlines

fantasai wrote:

> Shaping is not broken across an inline element boundary unless:
> 
>    1. one of margin/border/padding are non-zero
> 
>    2. vertical-align is not 'baseline'
> 
>    3. it is a bidi isolation boundary
> 
> Note: This means that color changes, font changes, letterspacing
> changes, etc. have no effect on shaping. Shaping might not result
> in the glyphs joining correctly, but will nonetheless choose the
> correct form of the letter (initial, medial, final, isolated).

Shaping by definition is the mapping of text to a set of associated glyphs and positions. So font changes having no effect on shaping is a non-sequitur. Any property that affects the set of features applied to a given text run is an input to shaping, so changes in those may affect shaping results.

I think in practice the complexities of text handling at this level make it very difficult to come up with easy generalizations like this. Not sure what the intended purpose of this text is but I guess the first question is whether it's necessary or not.

Regards,

John Daggett
Mozilla Japan

Received on Friday, 15 August 2014 04:01:08 UTC