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

Issue 1092093002: Respect declared font style on Android. (Closed)

Created:
5 years, 8 months ago by bungeman-skia
Modified:
5 years, 8 months ago
Reviewers:
scroggo, mtklein, tomhudson
CC:
reviews_skia.org, djsollen
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Respect declared font style on Android. Previously the normal/italic style bit was obtained from scanning the font file. With the new format the style may be stated explicitly, and this explicit value in the configuration file should override any information obtained from the font data itself. This change allows the font element's style attribute to override the font's style, but retains the default 'auto' setting for backwards compatibility. Repecting the style bit may become more important with variation fonts, because it will be up to the configuration writer to determine what values of the 'slnt' variation should be considered 'normal' or 'italic'. DOCS_PREVIEW= https://skia.org/?cl=1092093002 Committed: https://skia.googlesource.com/skia/+/673e902c9b9982a167f54f1cc175d8d9cab8bcaf Committed: https://skia.googlesource.com/skia/+/e85a754a4ce9b279159270faa6717932f7a8548f

Patch Set 1 #

Patch Set 2 : Explicitly default the style to Auto. #

Total comments: 2

Patch Set 3 : Use 'k' prefix for constants. #

Patch Set 4 : Fix markdown '<'. #

Patch Set 5 : Clarify documentation. #

Patch Set 6 : remove superfluous 's'. #

Patch Set 7 : Always assign style. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -7 lines) Patch
M site/dev/contrib/style.md View 1 2 3 4 5 1 chunk +13 lines, -4 lines 0 comments Download
M src/ports/SkFontConfigParser_android.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/ports/SkFontConfigParser_android.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/ports/SkFontMgr_android.cpp View 1 2 3 4 5 6 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
bungeman-skia
We should be doing this for consistency anyway, but will be wanted when we support ...
5 years, 8 months ago (2015-04-17 15:39:23 UTC) #2
bungeman-skia
Apparently I got one of the reviewers wrong earlier (sad face at autocomplete).
5 years, 8 months ago (2015-04-17 18:46:32 UTC) #4
bungeman-skia
I'll throw this out to scroggo, since he might be available.
5 years, 8 months ago (2015-04-17 18:51:34 UTC) #6
scroggo
lgtm https://codereview.chromium.org/1092093002/diff/20001/src/ports/SkFontConfigParser_android.h File src/ports/SkFontConfigParser_android.h (right): https://codereview.chromium.org/1092093002/diff/20001/src/ports/SkFontConfigParser_android.h#newcode70 src/ports/SkFontConfigParser_android.h:70: enum class Style { Auto, Normal, Italic } ...
5 years, 8 months ago (2015-04-17 19:06:50 UTC) #7
bungeman-skia
https://codereview.chromium.org/1092093002/diff/20001/src/ports/SkFontConfigParser_android.h File src/ports/SkFontConfigParser_android.h (right): https://codereview.chromium.org/1092093002/diff/20001/src/ports/SkFontConfigParser_android.h#newcode70 src/ports/SkFontConfigParser_android.h:70: enum class Style { Auto, Normal, Italic } fStyle; ...
5 years, 8 months ago (2015-04-17 20:12:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1092093002/100001
5 years, 8 months ago (2015-04-17 20:18:53 UTC) #11
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/673e902c9b9982a167f54f1cc175d8d9cab8bcaf
5 years, 8 months ago (2015-04-17 20:25:06 UTC) #12
jcgregorio
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1082173004/ by jcgregorio@google.com. ...
5 years, 8 months ago (2015-04-17 20:30:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1092093002/120001
5 years, 8 months ago (2015-04-17 20:38:22 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-17 20:51:14 UTC) #17
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/e85a754a4ce9b279159270faa6717932f7a8548f

Powered by Google App Engine
This is Rietveld 408576698