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

> ... What is the correct/expected result?

Assuming that kerning would not apply across different faces, then I'd say that the renderings that don't apply kerning would seem to be the expected ones.
One might also argue that - assuming support for the `font-kerning` property - that all renderings are correct (since the initial value of said property is `auto` and leaves it to the UA to decide if kerning should be applied or not - and maybe resvg is applying kerning optically).
I suspect that this is more in territory of the [CSS Fonts](https://drafts.csswg.org/css-fonts/) and [CSS Text](https://drafts.csswg.org/css-text-3/) specifications. The latter says:

> 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.

https://drafts.csswg.org/css-text-3/#boundary-shaping

(Example 33 just after the quoted text gives an example [the last] that is close to what the latter example is about.)

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

Received on Sunday, 27 January 2019 15:14:04 UTC