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

Issue 353993003: Fix SkTypeface::serialize() on Mac by properly indicating local fonts (Closed)

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

Description

Fix SkTypeface::serialize() on Mac by properly indicating local fonts We used to always set isLocalStream to false in SkTypeface_Mac::onGetFontDescriptor(), which caused SkTypeface::serialize() to never actually serialize fonts. BUG=skia:2698 Committed: https://skia.googlesource.com/skia/+/26337e970201cae39f44b49546b8d9b0bc5e5c98

Patch Set 1 #

Patch Set 2 : style nits #

Total comments: 1

Patch Set 3 : avoid caching fonts created from stream #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -11 lines) Patch
M src/ports/SkFontHost_mac.cpp View 1 2 7 chunks +12 lines, -10 lines 0 comments Download
M tests/FontHostStreamTest.cpp View 2 chunks +7 lines, -0 lines 0 comments Download
M tests/SerializationTest.cpp View 1 2 4 chunks +77 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
caseq
Please take a look -- we bumped into this problem while playing with the DevTools' ...
6 years, 5 months ago (2014-06-27 09:56:44 UTC) #1
bungeman-skia
See also https://codereview.chromium.org/13947030/ , this got derailed at some point for some reason.
6 years, 5 months ago (2014-06-30 14:58:28 UTC) #2
bungeman-skia
https://codereview.chromium.org/353993003/diff/20001/src/ports/SkFontHost_mac.cpp File src/ports/SkFontHost_mac.cpp (right): https://codereview.chromium.org/353993003/diff/20001/src/ports/SkFontHost_mac.cpp#newcode1448 src/ports/SkFontHost_mac.cpp:1448: return cg ? internalCreateTypefaceFromCTFont(ct, true) : NULL; I think ...
6 years, 5 months ago (2014-06-30 15:10:24 UTC) #3
caseq
On 2014/06/30 15:10:24, bungeman1 wrote: > See also https://codereview.chromium.org/13947030/ , this got derailed at some ...
6 years, 5 months ago (2014-06-30 16:27:42 UTC) #4
bungeman-skia
lgtm
6 years, 5 months ago (2014-06-30 18:59:08 UTC) #5
bungeman-skia
The CQ bit was checked by bungeman@google.com
6 years, 5 months ago (2014-06-30 18:59:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/caseq@chromium.org/353993003/40001
6 years, 5 months ago (2014-06-30 18:59:47 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-06-30 19:14:58 UTC) #8
Message was sent while issue was closed.
Change committed as 26337e970201cae39f44b49546b8d9b0bc5e5c98

Powered by Google App Engine
This is Rietveld 408576698