Re: [svgwg] tspan and text shaping (#634)

Only relevant thing I can find is the part referenced by @fsoder 
> **7.3. Shaping Across Element Boundaries**
> Text shaping must be broken at inline box boundaries when any of the following are true for any box whose boundary separates the two typographic character units:
> 
> 
> > Any of margin/border/padding separating the two typographic character units in the inline axis is non-zero.
> > 
> > vertical-align is not baseline.
> > 
> > The boundary is a bidi isolation boundary.
> 
> Text shaping must not be broken across inline box boundaries when there is no effective change in formatting, or if the only formatting changes do not affect the glyphs (as in applying text decoration).
> 
> Text shaping should not be broken across inline box boundaries otherwise, if it is reasonable and possible for that case given the limitations of the font technology.

So if the same glyphs and metrics would have been chosen, when authored without separating markup, then it must not break shaping. Nothing seems to specify how to handle scaling of kerning if the glyphs have different font-size/weight etc. thus it seems safe to ignore kerning at that point. And, e.g. color shouldn't disable kerning, from a strict reading of that at least. But, seems the de-facto standard way to implement the spec has been to disable kerning if capitalized characters are separated by markup from characters they would otherwise have kerning adjustments for. As can be seen from your Text and AVA examples. But, they preserve kerning for lower case characters, such as fe and fi in my example.

-- 
GitHub Notification of comment by msand
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/634#issuecomment-458260925 using your GitHub account

Received on Monday, 28 January 2019 19:08:55 UTC