DescriptionWork around changes in OSX 10.10.
In 10.10.1 CTFontGetAdvancesForGlyphs applies the font
transform to the width of the advance but always sets the
height of the advance to 0. Work around this by measuring the
advance with an unrotated font and apply the transform
manually.
In 10.7 through 10.9 CTFontDrawGlyphs appears to take
'positions' in text space and acts like
CGContextShowGlyphsAtPosition. In 10.10.1, these 'positions' now appear to be in glyph space, and
CTFontDrawGlyphs maps the glyph positions internally.
BUG=chromium:442574
Committed: https://skia.googlesource.com/skia/+/3b4b66c04a2567c72754a55e53db41394249b223
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address comments, fix comments. #Messages
Total messages: 10 (3 generated)
|