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

Issue 488143002: Replace SkTypeface::Style with SkFontStyle. (Closed)

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

Description

Patch Set 1 : Linux Android #

Patch Set 2 : Windows #

Patch Set 3 : Mac #

Patch Set 4 : Linux again. #

Patch Set 5 : Windows #

Patch Set 6 : Clean up weight detection. #

Total comments: 2

Patch Set 7 : Pass as const ref. #

Total comments: 4

Patch Set 8 : Add or correct comments. #

Patch Set 9 : Rabase #

Patch Set 10 : Add expectations, remove whitespace. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -408 lines) Patch
M expectations/gm/Test-ChromeOS-Alex-GMA3150-x86-Debug/expected-results.json View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M expectations/gm/Test-ChromeOS-Alex-GMA3150-x86-Release/expected-results.json View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M expectations/gm/Test-ChromeOS-Daisy-MaliT604-Arm7-Debug/expected-results.json View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M expectations/gm/Test-ChromeOS-Daisy-MaliT604-Arm7-Release/expected-results.json View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M expectations/gm/Test-ChromeOS-Link-HD4000-x86_64-Debug/expected-results.json View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M expectations/gm/Test-ChromeOS-Link-HD4000-x86_64-Release/expected-results.json View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M gyp/ports.gyp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
A + include/core/SkFontStyle.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkTypeface.h View 1 2 3 4 5 6 7 8 9 4 chunks +20 lines, -11 lines 0 comments Download
D include/ports/SkFontStyle.h View 1 chunk +0 lines, -70 lines 0 comments Download
M src/core/SkFontHost.cpp View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -20 lines 0 comments Download
M src/core/SkTypefaceCache.h View 1 2 3 4 5 6 4 chunks +6 lines, -6 lines 0 comments Download
M src/core/SkTypefaceCache.cpp View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M src/fonts/SkFontMgr_fontconfig.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/fonts/SkGScalerContext.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/fonts/SkTestScalerContext.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/fonts/SkTestScalerContext.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M src/ports/SkFontConfigTypeface.h View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 4 5 2 chunks +48 lines, -5 lines 0 comments Download
M src/ports/SkFontHost_FreeType_common.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M src/ports/SkFontHost_fontconfig.cpp View 1 2 3 4 5 6 2 chunks +21 lines, -17 lines 0 comments Download
M src/ports/SkFontHost_linux.cpp View 1 2 3 4 5 6 7 chunks +10 lines, -11 lines 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 2 3 4 5 6 20 chunks +109 lines, -163 lines 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 2 3 4 5 6 9 chunks +20 lines, -34 lines 0 comments Download
M src/ports/SkFontMgr_android.cpp View 1 2 3 4 5 6 6 chunks +6 lines, -13 lines 0 comments Download
M src/ports/SkFontMgr_fontconfig.cpp View 1 2 3 4 5 6 5 chunks +6 lines, -13 lines 0 comments Download
M src/ports/SkFontMgr_win_dw.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkTypeface_win_dw.h View 1 2 3 4 5 6 2 chunks +10 lines, -14 lines 0 comments Download
M tools/sk_tool_utils_font.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (4 generated)
bungeman-skia
There is even more to be done, but this seemed like a good place to ...
6 years, 4 months ago (2014-08-21 15:50:15 UTC) #1
bungeman-skia
The failure in fontmgr_iter on ChromeOS is actually a fix for fallback weight selection.
6 years, 2 months ago (2014-10-16 21:10:10 UTC) #2
bungeman-skia
After some time trying to consider a way to stage this globally, I have come ...
6 years, 2 months ago (2014-10-17 18:36:40 UTC) #3
reed1
I like the idea https://codereview.chromium.org/488143002/diff/100001/src/ports/SkFontConfigTypeface.h File src/ports/SkFontConfigTypeface.h (right): https://codereview.chromium.org/488143002/diff/100001/src/ports/SkFontConfigTypeface.h#newcode21 src/ports/SkFontConfigTypeface.h:21: static FontConfigTypeface* Create(SkFontStyle style, why ...
6 years, 2 months ago (2014-10-17 18:50:31 UTC) #4
bungeman-skia
https://codereview.chromium.org/488143002/diff/100001/src/ports/SkFontConfigTypeface.h File src/ports/SkFontConfigTypeface.h (right): https://codereview.chromium.org/488143002/diff/100001/src/ports/SkFontConfigTypeface.h#newcode21 src/ports/SkFontConfigTypeface.h:21: static FontConfigTypeface* Create(SkFontStyle style, On 2014/10/17 18:50:31, reed1 wrote: ...
6 years, 2 months ago (2014-10-17 19:56:48 UTC) #5
reed1
lgtm w/ documentation comments https://codereview.chromium.org/488143002/diff/120001/include/core/SkFontStyle.h File include/core/SkFontStyle.h (right): https://codereview.chromium.org/488143002/diff/120001/include/core/SkFontStyle.h#newcode46 include/core/SkFontStyle.h:46: explicit SkFontStyle(unsigned oldStyle); // oldStyle ...
6 years, 2 months ago (2014-10-20 18:39:56 UTC) #6
bungeman-skia
https://codereview.chromium.org/488143002/diff/120001/include/core/SkFontStyle.h File include/core/SkFontStyle.h (right): https://codereview.chromium.org/488143002/diff/120001/include/core/SkFontStyle.h#newcode46 include/core/SkFontStyle.h:46: explicit SkFontStyle(unsigned oldStyle); On 2014/10/20 18:39:56, reed1 wrote: > ...
6 years, 2 months ago (2014-10-20 19:15:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/488143002/140001
6 years, 2 months ago (2014-10-20 19:16:34 UTC) #9
commit-bot: I haz the power
Failed to apply patch for gyp/public_headers.gypi: While running git apply --index -3 -p1; error: patch ...
6 years, 2 months ago (2014-10-20 19:17:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/488143002/160001
6 years, 2 months ago (2014-10-20 19:25:52 UTC) #13
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 43b8b36b20ae00e2d78421c4cda1f3f922983a20
6 years, 2 months ago (2014-10-20 19:34:06 UTC) #14
mtklein
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/667023002/ by mtklein@google.com. ...
6 years, 2 months ago (2014-10-20 19:53:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/488143002/180001
6 years, 2 months ago (2014-10-20 20:25:46 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 20:33:36 UTC) #18
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as a4c4a2d8cd65abb1e5ac20813831cdb9ace6c7ee

Powered by Google App Engine
This is Rietveld 408576698