WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED MOVED
179099
Cannot map from glyphs back to character indices when using
https://bugs.webkit.org/show_bug.cgi?id=179099
Summary
Cannot map from glyphs back to character indices when using
Myles C. Maxfield
Reported
2017-10-31 18:57:29 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-10-31 18:57:58 PDT
<
rdar://problem/35285887
>
Myles C. Maxfield
Comment 2
2017-10-31 18:58:53 PDT
I should also note that this array of string indices is not always present, because we don't always need it. It's optional.
Brent Fulgham
Comment 3
2022-02-10 19:36:30 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'. The relevant team believes that this behaves correctly.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug