Re: [svgwg] Rotating text

I'm not an expert on this. Though the guy that sits next to me is, so 
I've been picking his brains.

At first I thought that using the term glyph was wrong and we 
shouldn't be using it here.

For example:
Á is U+0041 combined with U+0301 and is treated as a single unit 
(can't be broken).
It could be represented as a single glyph, or as two glyphs (with the 
diacritic being moved into position using the gpos table).

In either case, it should consume one of 'x','y','dx','dy', or 
'rotate'.

But I think the phrase that @AmeliaBR referenced does handle this 
correctly in both cases. Depending on the font, it will be either a 
many to one mapping, or a many to many mapping. It looks like both 
should provide the correct result.

Testing implementations, Firefox is mostly right, Chrome/WebKit is 
wrong. Chrome/WebKit breaks up the 'units', while FireFox doesn't, but
 may be consuming the elements of the 'x','y','dx','dy', or 'rotate' 
arrays incorrectly.
Test: https://jsfiddle.net/dodgeyhack/trmxc73n/



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

Received on Tuesday, 13 September 2016 04:30:39 UTC