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

Issue 15064003: Fix vertical text scaling on Mac. (Closed)

Created:
7 years, 7 months ago by bungeman-skia
Modified:
7 years, 7 months ago
Reviewers:
caryclark, reed1
CC:
skia-review_googlecode.com
Visibility:
Public.

Description

This is to fix https://code.google.com/p/chromium/issues/detail?id=238081 . The issue is most easily seen by opening the GM:verttext or GM:verttext2 slide in SampleApp and zooming in or out or flipping on Lion or Mountain Lion. The behavior is actually correct on Snow Leopard. This change fixes the issues with vertical metrics on Lion and Mountain Lion while also keeping things working on Snow Leopard. Since Leopard is no longer supported and I have no Leopard machine to test on, this also removes the remaining Leopard code.

Patch Set 1 #

Patch Set 2 : SnowLeopard #

Patch Set 3 : Clean-up #

Total comments: 3

Patch Set 4 : Create initial metrics in CG space. #

Total comments: 1

Patch Set 5 : Clean up. #

Patch Set 6 : getVerticalOffset needs vertical invert pre, not post (for Snow Leopard). #

Patch Set 7 : Working. #

Patch Set 8 : Make vertical text look better. #

Total comments: 1

Patch Set 9 : Clean up. #

Patch Set 10 : Work with OTF CFF fonts too. #

Total comments: 6

Patch Set 11 : Add SK_IGNORE_MAC_TEXT_BOUNDS_FIX for rebaselining, address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -86 lines) Patch
M gm/verttext.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
M samplecode/SampleApp.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 2 3 4 5 6 7 8 9 10 22 chunks +252 lines, -84 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bungeman-skia
Publishing some notes to myself. https://codereview.chromium.org/15064003/diff/6001/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/15064003/diff/6001/src/ports/SkFontHost_mac.cpp#newcode303 src/ports/SkFontHost_mac.cpp:303: static SkScalar getFontScale(CGFontRef cgFont) ...
7 years, 7 months ago (2013-05-10 17:08:03 UTC) #1
bungeman-skia
After much hair pulling with regard to CoreText vertical metrics, with this change the correct ...
7 years, 7 months ago (2013-05-10 17:22:52 UTC) #2
caryclark
lgtm
7 years, 7 months ago (2013-05-10 18:09:30 UTC) #3
bungeman-skia
With this change (at the approved Patch Set 7) the bounds are often slightly different, ...
7 years, 7 months ago (2013-05-10 22:30:36 UTC) #4
bungeman-skia
The biggest improvement (with Patch Set 10) can be seen in fast/text/emphasis-vertical.html where we were ...
7 years, 7 months ago (2013-05-14 19:44:37 UTC) #5
caryclark
lgtm https://codereview.chromium.org/15064003/diff/32001/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/15064003/diff/32001/src/ports/SkFontHost_mac.cpp#newcode642 src/ports/SkFontHost_mac.cpp:642: virtual ~SkScalerContext_Mac() { }; can we remove the ...
7 years, 7 months ago (2013-05-14 20:08:09 UTC) #6
bungeman-skia
Patch Set 11 is the same as Patch Set 10 (modulo small fixes for comments) ...
7 years, 7 months ago (2013-05-14 22:30:20 UTC) #7
bungeman-skia
7 years, 7 months ago (2013-05-15 15:09:29 UTC) #8
Message was sent while issue was closed.
Committed revision 9142.

Powered by Google App Engine
This is Rietveld 408576698