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

Issue 427293003: Implement SkFontMgr_Android::onMatchFamilyStyleCharacter. (Closed)

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

Description

Implement SkFontMgr_Android::onMatchFamilyStyleCharacter. This will allow us to replace SkGetFallbackFamilyNameForChar and also eventually fix issues with it's reliance on names. Committed: https://skia.googlesource.com/skia/+/65fcd3de3cb9dfd766c460500586eb939e6a6d68

Patch Set 1 : First thing that works. #

Total comments: 17

Patch Set 2 : Address comments, move mask to parser. #

Total comments: 14

Patch Set 3 : Address comments, treat mask as style. #

Patch Set 4 : Remove commented out test shim. #

Total comments: 6

Patch Set 5 : Address comments, clarify code. #

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

Messages

Total messages: 14 (0 generated)
bungeman-skia
At PS1 the Clankium/Blink side change is - SkString skiaFamilyName; - if (!SkGetFallbackFamilyNameForChar(c, locale, &skiaFamilyName) ...
6 years, 4 months ago (2014-07-30 17:00:08 UTC) #1
djsollen
https://codereview.chromium.org/427293003/diff/1/src/ports/SkFontMgr_android.cpp File src/ports/SkFontMgr_android.cpp (right): https://codereview.chromium.org/427293003/diff/1/src/ports/SkFontMgr_android.cpp#newcode91 src/ports/SkFontMgr_android.cpp:91: public: seems like having 2 getters makes more sense ...
6 years, 4 months ago (2014-07-30 17:31:43 UTC) #2
tomhudson
Please give us a full-sentences-English CL description. https://codereview.chromium.org/427293003/diff/1/src/ports/SkFontMgr_android.cpp File src/ports/SkFontMgr_android.cpp (right): https://codereview.chromium.org/427293003/diff/1/src/ports/SkFontMgr_android.cpp#newcode68 src/ports/SkFontMgr_android.cpp:68: bool useInFallback) ...
6 years, 4 months ago (2014-07-30 17:54:58 UTC) #3
bungeman-skia
PS2 is quite a bit cleaner and also works well with Clankium. https://codereview.chromium.org/427293003/diff/1/src/ports/SkFontMgr_android.cpp File src/ports/SkFontMgr_android.cpp ...
6 years, 4 months ago (2014-07-30 23:03:28 UTC) #4
djsollen
https://codereview.chromium.org/427293003/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/427293003/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode207 src/ports/SkFontConfigParser_android.cpp:207: uint32_t ignoredVariants) ignoredVariants = 0; https://codereview.chromium.org/427293003/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode328 src/ports/SkFontConfigParser_android.cpp:328: parseConfigFile(testFallbackConfigFile, fallbackFonts, ...
6 years, 4 months ago (2014-07-31 14:51:37 UTC) #5
bungeman-skia
PS3 has been tested with Clankium and things work. The main idea here is to ...
6 years, 4 months ago (2014-07-31 22:15:53 UTC) #6
bungeman-skia
At PS4 this is something which can be committed, and with some fancy footwork can ...
6 years, 4 months ago (2014-08-01 18:38:19 UTC) #7
djsollen
https://codereview.chromium.org/427293003/diff/60001/src/ports/SkFontMgr_android.cpp File src/ports/SkFontMgr_android.cpp (right): https://codereview.chromium.org/427293003/diff/60001/src/ports/SkFontMgr_android.cpp#newcode335 src/ports/SkFontMgr_android.cpp:335: if (compactLiteralLen <= familyNameLen) { should this be < ...
6 years, 4 months ago (2014-08-01 20:24:04 UTC) #8
bungeman-skia
https://codereview.chromium.org/427293003/diff/60001/src/ports/SkFontMgr_android.cpp File src/ports/SkFontMgr_android.cpp (right): https://codereview.chromium.org/427293003/diff/60001/src/ports/SkFontMgr_android.cpp#newcode335 src/ports/SkFontMgr_android.cpp:335: if (compactLiteralLen <= familyNameLen) { On 2014/08/01 20:24:04, djsollen ...
6 years, 4 months ago (2014-08-04 19:24:21 UTC) #9
tomhudson
On 2014/07/31 22:15:53, bungeman1 wrote: > https://codereview.chromium.org/427293003/diff/20001/src/ports/SkFontMgr_android.cpp > File src/ports/SkFontMgr_android.cpp (right): > > https://codereview.chromium.org/427293003/diff/20001/src/ports/SkFontMgr_android.cpp#newcode36 > ...
6 years, 4 months ago (2014-08-06 15:15:47 UTC) #10
djsollen
lgtm
6 years, 4 months ago (2014-08-06 17:13:34 UTC) #11
bungeman-skia
The CQ bit was checked by bungeman@google.com
6 years, 4 months ago (2014-08-06 17:21:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bungeman@google.com/427293003/80001
6 years, 4 months ago (2014-08-06 17:22:35 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 18:12:23 UTC) #14
Message was sent while issue was closed.
Change committed as 65fcd3de3cb9dfd766c460500586eb939e6a6d68

Powered by Google App Engine
This is Rietveld 408576698