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

Issue 1360663002: Use only one CGFont/CTFont per scaler context on Mac. (Closed)

Created:
5 years, 3 months ago by bungeman-skia
Modified:
5 years, 1 month ago
Reviewers:
mtklein, *reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use only one CGFont/CTFont per scaler context on Mac. The unrotated CTFont was introduced to fix color emoji scaling. Use only the unrotated CTFont and apply the rotations manually. This allows removal of one CTFont and allows us to apply (correctly) the transformation CoreText would otherwise need to apply (which it appears to do inconsistently). Committed: https://skia.googlesource.com/skia/+/ef27ce3730d4032515e27e5aa7b31b2088969237

Patch Set 1 #

Patch Set 2 : Fix path creation matrix. #

Patch Set 3 : Rebase. #

Patch Set 4 : Make 10.6 work-around easier to remove in the future. #

Total comments: 3

Patch Set 5 : Remove duplicate code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -23 lines) Patch
M src/ports/SkFontHost_mac.cpp View 1 2 3 4 10 chunks +29 lines, -23 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360663002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360663002/20001
5 years, 3 months ago (2015-09-22 16:07:59 UTC) #2
bungeman-skia
erikchen: could you take a look and make sure that this fixes the issue for ...
5 years, 3 months ago (2015-09-22 16:11:16 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-22 16:13:02 UTC) #6
erikchen
On 2015/09/22 16:13:02, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years, 3 months ago (2015-09-22 16:45:02 UTC) #7
bungeman-skia
On 2015/09/22 16:45:02, erikchen wrote: > On 2015/09/22 16:13:02, commit-bot: I haz the power wrote: ...
5 years, 3 months ago (2015-09-22 16:49:45 UTC) #8
erikchen
On 2015/09/22 16:49:45, bungeman1 wrote: > On 2015/09/22 16:45:02, erikchen wrote: > > On 2015/09/22 ...
5 years, 3 months ago (2015-09-22 16:54:06 UTC) #9
bungeman-skia
On 2015/09/22 16:54:06, erikchen wrote: > On 2015/09/22 16:49:45, bungeman1 wrote: > > On 2015/09/22 ...
5 years, 3 months ago (2015-09-22 17:03:39 UTC) #10
bungeman-skia
Since the CTFont now being created has nullptr for the transform, CoreText / CoreGraphics won't ...
5 years, 2 months ago (2015-10-05 21:31:05 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360663002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360663002/60001
5 years, 2 months ago (2015-10-05 21:39:06 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-05 21:45:45 UTC) #16
mtklein
grain-of-salt lgtm https://codereview.chromium.org/1360663002/diff/60001/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/1360663002/diff/60001/src/ports/SkFontHost_mac.cpp#newcode1379 src/ports/SkFontHost_mac.cpp:1379: CGAffineTransform scale(CGAffineTransformMakeScale(ScalarToCG(scaleX), ScalarToCG(scaleY))); I feel like this ...
5 years, 2 months ago (2015-10-05 21:58:12 UTC) #18
bungeman-skia
I've run this change through the Skia trybots here and the Chromium trybots at https://codereview.chromium.org/1426923003/ ...
5 years, 1 month ago (2015-10-29 15:36:35 UTC) #19
reed1
lgtm w/ duplicate line nit https://codereview.chromium.org/1360663002/diff/60001/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/1360663002/diff/60001/src/ports/SkFontHost_mac.cpp#newcode937 src/ports/SkFontHost_mac.cpp:937: skVertOffset = { CGToScalar(cgVertOffset.width), ...
5 years, 1 month ago (2015-10-29 15:44:23 UTC) #20
bungeman-skia
https://codereview.chromium.org/1360663002/diff/60001/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/1360663002/diff/60001/src/ports/SkFontHost_mac.cpp#newcode937 src/ports/SkFontHost_mac.cpp:937: skVertOffset = { CGToScalar(cgVertOffset.width), CGToScalar(cgVertOffset.height) }; On 2015/10/29 15:44:23, ...
5 years, 1 month ago (2015-10-29 15:52:13 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360663002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360663002/80001
5 years, 1 month ago (2015-10-29 15:52:30 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-29 16:03:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1360663002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1360663002/80001
5 years, 1 month ago (2015-10-29 16:30:01 UTC) #28
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 16:30:34 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/ef27ce3730d4032515e27e5aa7b31b2088969237

Powered by Google App Engine
This is Rietveld 408576698