diff options
author | bungeman <bungeman@google.com> | 2015-01-08 08:33:44 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-08 08:33:44 -0800 |
commit | 3b4b66c04a2567c72754a55e53db41394249b223 (patch) | |
tree | cdcd4af0a2c83a0b56439b071c0e259b499f6fd7 /forth | |
parent | 9558f653877b982df415e4d075db55b7558f7654 (diff) |
Work 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
Review URL: https://codereview.chromium.org/841843002
Diffstat (limited to 'forth')
0 files changed, 0 insertions, 0 deletions