[Webkit-unassigned] [Bug 179099] New: Cannot map from glyphs back to character indices when using

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 31 18:57:29 PDT 2017


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

            Bug ID: 179099
           Summary: Cannot map from glyphs back to character indices when
                    using
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Text
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmaxfield at apple.com
                CC: mmaxfield at apple.com

In both of our text codepaths, we build up parallel arrays of glyph IDs, paint advances, and string indices (the character which originated the glyph).

In Cocoa's complex text codepath, these come from CTRunGetGlyphs(), CTRunGetAdvances(), and CTRunGetStringIndices(), respectively.

In our simple text codepath, we first build up initial versions of the arrays by looping through the string, and using CTFontGetGlyphsForCharacters(), CTFontGetAdvancesForGlyphs(), and the loop index variable. Then we call Font::applyTransforms() (which, in Cocoa, calls CTFontTransformGlyphs()) which modifies the glyph and advances arrays. However, we don't make similar modifications to the array of string indices.

-- 
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/20171101/44a82a7c/attachment.html>


More information about the webkit-unassigned mailing list