Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Issue 841843002: Work around changes in OSX 10.10. (Closed)

Created:
5 years, 11 months ago by bungeman-skia
Modified:
5 years, 11 months ago
CC:
reviews_skia.org, caryclark
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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 Committed: https://skia.googlesource.com/skia/+/3b4b66c04a2567c72754a55e53db41394249b223

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments, fix comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -16 lines) Patch
M src/ports/SkFontHost_mac.cpp View 1 9 chunks +39 lines, -16 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
bungeman-skia
Will add more to description later, my editor eated it.
5 years, 11 months ago (2015-01-08 00:11:24 UTC) #2
mtklein
I think I follow. https://codereview.chromium.org/841843002/diff/1/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/841843002/diff/1/src/ports/SkFontHost_mac.cpp#newcode49 src/ports/SkFontHost_mac.cpp:49: #define SK_SHOW_TEXT_BLIT_COVERAGE 0 Add a ...
5 years, 11 months ago (2015-01-08 14:45:54 UTC) #3
reed1
time to switch to freetype... lgtm
5 years, 11 months ago (2015-01-08 15:28:02 UTC) #4
bungeman-skia
https://codereview.chromium.org/841843002/diff/1/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/841843002/diff/1/src/ports/SkFontHost_mac.cpp#newcode49 src/ports/SkFontHost_mac.cpp:49: #define SK_SHOW_TEXT_BLIT_COVERAGE 0 On 2015/01/08 14:45:54, mtklein wrote: > ...
5 years, 11 months ago (2015-01-08 16:21:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/841843002/20001
5 years, 11 months ago (2015-01-08 16:23:39 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/3b4b66c04a2567c72754a55e53db41394249b223
5 years, 11 months ago (2015-01-08 16:33:47 UTC) #8
behdad_google
5 years, 11 months ago (2015-01-08 18:16:36 UTC) #10
Message was sent while issue was closed.
What are the 'lum' changes doing in this CL?

Powered by Google App Engine
This is Rietveld 408576698