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

Issue 446473003: Parser for new fonts.xml format (Closed)

Created:
6 years, 4 months ago by Tom Hudson
Modified:
6 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@fcparse-lmp-2
Project:
skia
Visibility:
Public.

Description

Parses sample code provided by Android project. Attempts to keep FontFamily data structures produced consistent with expectations of previous versions of Skia. R=bungeman@google.com,djsollen@google.com BUG=400801 Committed: https://skia.googlesource.com/skia/+/07544757c9fcf0f359f1686a3779eb2e75dd5b36 Committed: https://skia.googlesource.com/skia/+/d3ddea284ec6611a93a6b75e64de39d0bc7e083c

Patch Set 1 #

Patch Set 2 : Complete basic implementation #

Total comments: 8

Patch Set 3 : Derek's review #

Total comments: 3

Patch Set 4 : Do you speak-a my language? #

Total comments: 27

Patch Set 5 : Palmer review #

Patch Set 6 : Rebase and add missing && #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -81 lines) Patch
M src/ports/SkFontConfigInterface_android.cpp View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M src/ports/SkFontConfigParser_android.h View 1 2 3 4 1 chunk +8 lines, -9 lines 0 comments Download
M src/ports/SkFontConfigParser_android.cpp View 1 2 3 4 5 22 chunks +71 lines, -63 lines 0 comments Download
M src/ports/SkFontMgr_android.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M tests/FontConfigParser.cpp View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
tomhudson
PTAL. I don't like purgeUndesiredWeights() and its helpers, but I think this is necessary for ...
6 years, 4 months ago (2014-08-05 14:50:04 UTC) #1
djsollen
https://codereview.chromium.org/446473003/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/446473003/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode110 src/ports/SkFontConfigParser_android.cpp:110: family->fFontFiles[i].fPaintOptions.setLanguage(family->language); no immediate change here, but post m37 let's ...
6 years, 4 months ago (2014-08-05 17:46:15 UTC) #2
tomhudson
https://codereview.chromium.org/446473003/diff/20001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/446473003/diff/20001/src/ports/SkFontConfigParser_android.cpp#newcode110 src/ports/SkFontConfigParser_android.cpp:110: family->fFontFiles[i].fPaintOptions.setLanguage(family->language); On 2014/08/05 17:46:15, djsollen wrote: > no immediate ...
6 years, 4 months ago (2014-08-05 19:35:35 UTC) #3
djsollen
lgtm with a few nits. https://codereview.chromium.org/446473003/diff/40001/src/ports/SkFontConfigParser_android.h File src/ports/SkFontConfigParser_android.h (right): https://codereview.chromium.org/446473003/diff/40001/src/ports/SkFontConfigParser_android.h#newcode45 src/ports/SkFontConfigParser_android.h:45: bool fIsFallbackFont; nit, why ...
6 years, 4 months ago (2014-08-05 19:44:08 UTC) #4
tomhudson
On 2014/08/05 19:44:08, djsollen wrote: > lgtm with a few nits. > > https://codereview.chromium.org/446473003/diff/40001/src/ports/SkFontConfigParser_android.h > ...
6 years, 4 months ago (2014-08-05 19:51:54 UTC) #5
djsollen
Since all my nits had logical rebuttals I see no reason to delay. LGTM at ...
6 years, 4 months ago (2014-08-05 20:06:27 UTC) #6
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 4 months ago (2014-08-05 20:23:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/446473003/60001
6 years, 4 months ago (2014-08-05 20:23:39 UTC) #8
commit-bot: I haz the power
Change committed as 07544757c9fcf0f359f1686a3779eb2e75dd5b36
6 years, 4 months ago (2014-08-05 20:35:08 UTC) #9
palmer
https://codereview.chromium.org/446473003/diff/60001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/446473003/diff/60001/src/ports/SkFontConfigParser_android.cpp#newcode83 src/ports/SkFontConfigParser_android.cpp:83: for (int i = 0; attributes[i] != NULL; i ...
6 years, 4 months ago (2014-08-06 21:05:30 UTC) #10
reed1
https://codereview.chromium.org/446473003/diff/60001/src/ports/SkFontConfigParser_android.cpp File src/ports/SkFontConfigParser_android.cpp (right): https://codereview.chromium.org/446473003/diff/60001/src/ports/SkFontConfigParser_android.cpp#newcode83 src/ports/SkFontConfigParser_android.cpp:83: for (int i = 0; attributes[i] != NULL; i ...
6 years, 4 months ago (2014-08-06 21:20:06 UTC) #11
palmer
> Skia uses int instead of size_t for most counters and indices. Is there a ...
6 years, 4 months ago (2014-08-06 22:38:20 UTC) #12
reed1
On 2014/08/06 22:38:20, Chromium Palmer wrote: > > Skia uses int instead of size_t for ...
6 years, 4 months ago (2014-08-07 14:26:05 UTC) #13
tomhudson
Renaming struct fields pulled in a couple of other files for mechanical renaming. https://codereview.chromium.org/446473003/diff/60001/src/ports/SkFontConfigParser_android.cpp File ...
6 years, 4 months ago (2014-08-07 14:39:43 UTC) #14
tomhudson
palmer@: Ping - the only thing I think you need to see is that some ...
6 years, 4 months ago (2014-08-11 14:55:20 UTC) #15
palmer
> palmer@: Ping - the only thing I think you need to see is that ...
6 years, 4 months ago (2014-08-11 17:48:16 UTC) #16
bungeman-skia
lgtm at PS5
6 years, 4 months ago (2014-08-11 18:01:26 UTC) #17
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 4 months ago (2014-08-11 18:01:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/446473003/80001
6 years, 4 months ago (2014-08-11 18:02:29 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 18:02:38 UTC) #20
commit-bot: I haz the power
Failed to apply patch for src/ports/SkFontMgr_android.cpp: While running git apply --index -p1; error: patch failed: ...
6 years, 4 months ago (2014-08-11 18:02:39 UTC) #21
tomhudson
The CQ bit was checked by tomhudson@google.com
6 years, 4 months ago (2014-08-11 18:19:52 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/tomhudson@chromium.org/446473003/100001
6 years, 4 months ago (2014-08-11 18:20:35 UTC) #23
commit-bot: I haz the power
6 years, 4 months ago (2014-08-11 18:28:07 UTC) #24
Message was sent while issue was closed.
Change committed as d3ddea284ec6611a93a6b75e64de39d0bc7e083c

Powered by Google App Engine
This is Rietveld 408576698