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

Issue 692553002: Add a flag indicating locally-created fonts to SkCreateTypefaceFromCTFont (Closed)

Created:
6 years, 1 month ago by caseq
Modified:
6 years, 1 month ago
Reviewers:
bungeman-skia, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Add a flag indicating locally-created fonts to SkCreateTypefaceFromCTFont We need to properly indicate whether the typeface was created from local stream when creating SkTypeface_Mac, otherwise the typeface won't be serialized. SkCreateTypefaceFromCTFont used to assume all fonts to be non-local, which caused web fonts to be incorrectly serialized on Mac. BUG=chromium:426088

Patch Set 1 #

Total comments: 1

Patch Set 2 : fixed line length #

Total comments: 2

Patch Set 3 : just add isLocal flag to SkCreateTypefaceFromCTFont #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M include/ports/SkTypeface_mac.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
caseq
Please take a look -- we've already fixed a similar bug before (https://codereview.chromium.org/353993003), but it ...
6 years, 1 month ago (2014-10-29 14:52:53 UTC) #2
reed1
https://codereview.chromium.org/692553002/diff/1/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/692553002/diff/1/src/ports/SkFontHost_mac.cpp#newcode580 src/ports/SkFontHost_mac.cpp:580: AutoCFRelease<CFTypeRef> priority(CTFontDescriptorCopyAttribute(fontDescriptor, kCTFontPriorityAttribute)); nit: 100cols
6 years, 1 month ago (2014-10-29 15:36:34 UTC) #4
caseq
On 2014/10/29 15:36:34, reed1 wrote: > https://codereview.chromium.org/692553002/diff/1/src/ports/SkFontHost_mac.cpp > File src/ports/SkFontHost_mac.cpp (right): > > https://codereview.chromium.org/692553002/diff/1/src/ports/SkFontHost_mac.cpp#newcode580 > ...
6 years, 1 month ago (2014-10-29 15:46:40 UTC) #6
reed1
Would it be cleaner to just add a parameter to this factory? either a flag, ...
6 years, 1 month ago (2014-10-29 15:58:49 UTC) #7
caseq
On 2014/10/29 15:58:49, reed1 wrote: > Would it be cleaner to just add a parameter ...
6 years, 1 month ago (2014-10-29 16:12:01 UTC) #8
bungeman-skia
Can you verify that this change doesn't make *all* fonts local on Mac? I don't ...
6 years, 1 month ago (2014-10-29 17:40:55 UTC) #9
caseq
On 2014/10/29 17:40:55, bungeman1 wrote: > Can you verify that this change doesn't make *all* ...
6 years, 1 month ago (2014-10-30 16:57:27 UTC) #10
caseq
Reopened, ptal. As you were suggesting earlier, I'm just adding a bool to flag to ...
6 years, 1 month ago (2014-10-31 13:09:39 UTC) #12
caseq
6 years, 1 month ago (2014-11-06 22:54:06 UTC) #13
Message was sent while issue was closed.
Closing once again as we decided to go with
https://codereview.chromium.org/691733004/.

Powered by Google App Engine
This is Rietveld 408576698