Re: [svgwg] Character counting in text 'x', 'y', 'dx', 'dy', and 'rotate' attributes.

@litherum That's not related to this issue, but for your reference:

> The spec should probably include an example that shows how text-on-a-path works with Arabic.

There are figures with Arabic text-on-a-path illustrating the `method` options: https://svgwg.org/svg2-draft/text.html#TextPathElementMethodAttribute

> Honestly, it’s probably impossible to do it well.

Not impossible, but few rendering agents have tried very hard.

No browser supports the "stretch" option for `method` (which guarantees smooth connections by distorting glyphs in addition to rotating them).

Stretching isn't strictly necessary, of course. For mildly-curving paths, the glyph overlap from the font should preserve the sense of connection. _But_, that doesn't mean you will get good results in current browsers.

I haven't tested recently, but there are [some more demos from my SVG Text book here](http://oreillymedia.github.io/SVG_Text_Layout/ch09-textPath-files/) if you want to explore current rendering. As of the book's publication, Firefox was the only browser with typographically acceptable results.  Chrome seems to still mess up the RTL ordering and use isolated forms instead of contextual ones. Don't have Safari to test with at the moment.

_________________

If you have any suggestions for spec improvements while looking into that, please do raise separate issues.

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

Received on Thursday, 25 October 2018 19:04:21 UTC