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

Issue 1027373002: Font variations. (Closed)

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

Description

Font variations. Multiple Master and TrueType fonts support variation axes. This implements back-end support for axes on platforms which support it. Committed: https://skia.googlesource.com/skia/+/05773ed30920c0214d1433c07cf6360a05476c97 Committed: https://skia.googlesource.com/skia/+/3489ee0f4fa34f124f9de090d12bdc2107d52aa9 Committed: https://skia.googlesource.com/skia/+/41868fe5625fc3bd70daa3f461c881b5db6a9265

Patch Set 1 #

Total comments: 7

Patch Set 2 : Slightly more palatable. #

Total comments: 4

Patch Set 3 : Update and rebase. #

Total comments: 1

Patch Set 4 : Initial Mac implementation (buggy). #

Total comments: 2

Patch Set 5 : Use CGFont on Mac. #

Patch Set 6 : Mac cleaned up a bit. #

Patch Set 7 : Other platforms working again. #

Patch Set 8 : Some clean up. #

Total comments: 8

Patch Set 9 : Address comments. #

Patch Set 10 : Start writing actual tests, implement on Linux. #

Patch Set 11 : Test, gm, and cleanup. #

Patch Set 12 : Mac actually working. #

Patch Set 13 : Restore test. #

Patch Set 14 : Line length. #

Patch Set 15 : Fix release build. #

Patch Set 16 : PDF to handle. #

Patch Set 17 : Android and tests. #

Total comments: 3

Patch Set 18 : Clean up test. #

Total comments: 1

Patch Set 19 : Regularize usage, fix leak. #

Patch Set 20 : Rebase #

Patch Set 21 : Rebase. #

Total comments: 2

Patch Set 22 : Fix Mac build. #

Total comments: 2

Patch Set 23 : Add back isLocal check. #

Patch Set 24 : Over-done work-around for FreeType without MM public API. #

Patch Set 25 : Simpler MM detection for the short term. #

Patch Set 26 : Use defined. #

Patch Set 27 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+825 lines, -153 lines) Patch
A + gm/fontscalerdistortable.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +23 lines, -20 lines 0 comments Download
M gyp/freetype.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkTypeface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +16 lines, -0 lines 0 comments Download
M include/ports/SkFontMgr.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +11 lines, -0 lines 0 comments Download
M resources/android_fonts/v22/fonts.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +12 lines, -0 lines 0 comments Download
M src/core/SkAdvancedTypefaceMetrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkFontDescriptor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +40 lines, -10 lines 0 comments Download
M src/core/SkFontDescriptor.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +31 lines, -11 lines 0 comments Download
M src/core/SkFontMgr.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +15 lines, -0 lines 0 comments Download
M src/core/SkTypeface.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +20 lines, -8 lines 0 comments Download
M src/fonts/SkFontMgr_fontconfig.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +1 line, -3 lines 0 comments Download
M src/ports/SkFontConfigParser_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +105 lines, -0 lines 0 comments Download
M src/ports/SkFontConfigParser_android.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +44 lines, -29 lines 0 comments Download
M src/ports/SkFontHost_FreeType.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 7 chunks +75 lines, -9 lines 0 comments Download
M src/ports/SkFontHost_FreeType_common.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 24 1 chunk +9 lines, -1 line 0 comments Download
M src/ports/SkFontHost_fontconfig.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/ports/SkFontHost_linux.cpp View 1 2 3 4 5 6 4 chunks +3 lines, -4 lines 0 comments Download
M src/ports/SkFontHost_mac.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +202 lines, -3 lines 0 comments Download
M src/ports/SkFontMgr_android.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +95 lines, -24 lines 0 comments Download
M src/ports/SkFontMgr_fontconfig.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +30 lines, -13 lines 0 comments Download
M src/ports/SkTypeface_win_dw.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M tests/FontConfigParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +52 lines, -1 line 0 comments Download
M tests/SerializationTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +38 lines, -13 lines 0 comments Download

Messages

Total messages: 55 (20 generated)
bungeman-skia
At PS1 this is kind of a rough design document style implementation of Multiple Master ...
5 years, 9 months ago (2015-03-23 21:59:05 UTC) #2
bungeman-skia
Some more notes to myself as I self review the intermediates. https://codereview.chromium.org/1027373002/diff/20001/include/core/SkTypeface.h File include/core/SkTypeface.h (right): ...
5 years, 8 months ago (2015-04-01 20:38:29 UTC) #3
behdad_google
> Axis space. Normalized or design? Prefer design. I'm leaning on design space. Problem is, ...
5 years, 8 months ago (2015-04-03 00:59:52 UTC) #4
bungeman-skia
On 2015/04/03 00:59:52, behdad_google wrote: > > Axis space. Normalized or design? Prefer design. > ...
5 years, 8 months ago (2015-04-13 21:00:39 UTC) #5
bungeman-skia
Tried other platforms, to see how that affects what serializes. https://codereview.chromium.org/1027373002/diff/40001/src/core/SkFontDescriptor.h File src/core/SkFontDescriptor.h (right): https://codereview.chromium.org/1027373002/diff/40001/src/core/SkFontDescriptor.h#newcode35 ...
5 years, 8 months ago (2015-04-23 21:16:34 UTC) #6
bungeman-skia
reed: This (at Patch Set 8) still needs a lot of cleanup work, but I ...
5 years, 7 months ago (2015-04-28 22:11:55 UTC) #7
reed1
https://codereview.chromium.org/1027373002/diff/140001/resources/android_fonts/v22/fonts.xml File resources/android_fonts/v22/fonts.xml (right): https://codereview.chromium.org/1027373002/diff/140001/resources/android_fonts/v22/fonts.xml#newcode5 resources/android_fonts/v22/fonts.xml:5: <font weight="100" style="normal"><axis tag="wght" stylevalue="32767.9999999"/>Roboto-Thin.ttf</font> what is this value? ...
5 years, 7 months ago (2015-04-29 15:36:46 UTC) #8
bungeman-skia
https://codereview.chromium.org/1027373002/diff/140001/resources/android_fonts/v22/fonts.xml File resources/android_fonts/v22/fonts.xml (right): https://codereview.chromium.org/1027373002/diff/140001/resources/android_fonts/v22/fonts.xml#newcode5 resources/android_fonts/v22/fonts.xml:5: <font weight="100" style="normal"><axis tag="wght" stylevalue="32767.9999999"/>Roboto-Thin.ttf</font> On 2015/04/29 15:36:46, reed1 ...
5 years, 7 months ago (2015-04-29 22:12:44 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/260001
5 years, 7 months ago (2015-05-06 19:56:17 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/733)
5 years, 7 months ago (2015-05-06 19:57:42 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/300001
5 years, 7 months ago (2015-05-06 21:08:28 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-06 21:14:42 UTC) #17
bungeman-skia
At Patch Set 17 this has tests and is fairly clean and doesn't appear to ...
5 years, 7 months ago (2015-05-06 23:09:55 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/340001
5 years, 7 months ago (2015-05-07 15:49:58 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-07 15:56:13 UTC) #23
reed1
https://codereview.chromium.org/1027373002/diff/320001/include/core/SkTypeface.h File include/core/SkTypeface.h (right): https://codereview.chromium.org/1027373002/diff/320001/include/core/SkTypeface.h#newcode138 include/core/SkTypeface.h:138: is not valid font data, returns null. Ownership of ...
5 years, 7 months ago (2015-05-08 20:46:30 UTC) #24
bungeman-skia
https://codereview.chromium.org/1027373002/diff/320001/include/core/SkTypeface.h File include/core/SkTypeface.h (right): https://codereview.chromium.org/1027373002/diff/320001/include/core/SkTypeface.h#newcode138 include/core/SkTypeface.h:138: is not valid font data, returns null. Ownership of ...
5 years, 7 months ago (2015-05-11 22:09:35 UTC) #25
bungeman-skia
https://codereview.chromium.org/1027373002/diff/340001/src/ports/SkFontHost_FreeType.cpp File src/ports/SkFontHost_FreeType.cpp (right): https://codereview.chromium.org/1027373002/diff/340001/src/ports/SkFontHost_FreeType.cpp#newcode325 src/ports/SkFontHost_FreeType.cpp:325: SkFontData* data = typeface->createFontData(); This is a leak. The ...
5 years, 7 months ago (2015-05-12 15:28:58 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/360001
5 years, 7 months ago (2015-05-12 19:18:03 UTC) #28
commit-bot: I haz the power
Dry run: Failed to apply patch for include/core/SkAdvancedTypefaceMetrics.h: While running git apply --index -3 -p1; ...
5 years, 7 months ago (2015-05-12 19:18:22 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/380001
5 years, 7 months ago (2015-05-12 19:27:15 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-12 19:33:32 UTC) #34
bungeman-skia
At PS20 this should now have easier to understand ownership of SkFontData as it is ...
5 years, 7 months ago (2015-05-12 19:40:07 UTC) #35
reed1
lgtm
5 years, 7 months ago (2015-05-13 17:40:25 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/400001
5 years, 7 months ago (2015-05-13 17:50:30 UTC) #38
commit-bot: I haz the power
Committed patchset #21 (id:400001) as https://skia.googlesource.com/skia/+/05773ed30920c0214d1433c07cf6360a05476c97
5 years, 7 months ago (2015-05-13 17:57:16 UTC) #39
bungeman-skia
A revert of this CL (patchset #21 id:400001) has been created in https://codereview.chromium.org/1128913008/ by bungeman@google.com. ...
5 years, 7 months ago (2015-05-13 19:13:56 UTC) #40
bungeman-skia
At PS23, Mac and Windows should now have no change in behavior. Still trying to ...
5 years, 7 months ago (2015-05-13 23:04:45 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/500001
5 years, 7 months ago (2015-05-14 20:26:18 UTC) #44
commit-bot: I haz the power
Committed patchset #26 (id:500001) as https://skia.googlesource.com/skia/+/3489ee0f4fa34f124f9de090d12bdc2107d52aa9
5 years, 7 months ago (2015-05-14 21:18:11 UTC) #45
robertphillips
A revert of this CL (patchset #26 id:500001) has been created in https://codereview.chromium.org/1139123008/ by robertphillips@google.com. ...
5 years, 7 months ago (2015-05-15 18:29:52 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/500001
5 years, 7 months ago (2015-05-20 15:46:54 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/14)
5 years, 7 months ago (2015-05-20 15:47:57 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1027373002/520001
5 years, 7 months ago (2015-05-20 16:14:34 UTC) #54
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 16:21:09 UTC) #55
Message was sent while issue was closed.
Committed patchset #27 (id:520001) as
https://skia.googlesource.com/skia/+/41868fe5625fc3bd70daa3f461c881b5db6a9265

Powered by Google App Engine
This is Rietveld 408576698