[Webkit-unassigned] [Bug 215321] SVG text element with text-anchor: middle is misaligned using icon font

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 11 17:43:39 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215321

Said Abou-Hallawa <sabouhallawa at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sabouhallawa at apple.com

--- Comment #2 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
It looks like ligatures are not handled correctly for SVG fonts.

For example the test case contains the text "expand_more" which is supposed to be drawn by one glyph. When getting the width of this text, we loop through all the characters one by one and sum the widths of all the characters. But because the widths of all the characters are 38 which is the width of the ligature, we end up adding this width 11 times. And we get the width = 418 instead of getting 38. See SVGTextLayoutEngine::recordTextFragment().

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200812/76377fde/attachment.htm>


More information about the webkit-unassigned mailing list