[Webkit-unassigned] [Bug 161493] [FreeType] Incorrect application of glyph positioning in the Y direction
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 27 09:52:08 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=161493
Carlos Garcia Campos <cgarcia at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cgarcia at igalia.com
--- Comment #37 from Carlos Garcia Campos <cgarcia at igalia.com> ---
I think the problem is that ComplexTextController adds glyph origins to their advance in a single advances. But in cairo we need origins and advances separately. We need to apply the current origin when drawing, and then advance. We are using the current point as origin, and then advancing the advance + origin. In these examples there's a y origin we are ignoring.
So, we have:
glyphs[i] = { glyphsData[i], xOffset, yOffset };
xOffset += advances[i].width();
this should be
glyphs[i] = { glyphsData[i], xOffset + xOrigin, yOffset + yOrigin };
xOffset += advances[i].width();
but we don't have the origins in GlyphBuffer.
--
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/20190327/b97e0f15/attachment.html>
More information about the webkit-unassigned
mailing list