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

@litherum gotcha.

CSS UI defines the caret position in form of characters. Same spec refers characters to:
> Within the context of this definition, character is to be understood as extended grapheme cluster, as defined in [UAX29], and visible character means a character with a non-zero advance measure.
https://www.w3.org/TR/css-ui-4/#caret-shape

Given that caret is determined by using EGC, typographic characters are defined by using EGC as well Font Metrics API is defined by using EGC it would make sense to refer to EGC for “character counting” in SVG text for Layout as well IMHO. Especially caret position and layout position should be consistent or we would see weird results.

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

Received on Saturday, 27 October 2018 06:16:58 UTC