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

Issue 1912013002: Use the new legacyCreateTypeface that has an SkFontStyle parameter (Closed)

Created:
4 years, 8 months ago by Tom (Use chromium acct)
Modified:
4 years, 7 months ago
CC:
chromium-reviews, krit, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Justin Novosad, Rik, Stephen Chennney, blink-reviews, f(malita), danakj+watch_chromium.org, kinuko+watch, rwlbuis, Lei Zhang, bungeman-chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the new legacyCreateTypeface that has an SkFontStyle parameter Depends on Skia CL https://codereview.chromium.org/1905253002/ BUG=368442 Committed: https://crrev.com/f24ce736e38fa9b159d59dab44b7cc2c69a67849 Cr-Commit-Position: refs/heads/master@{#390426}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use the new legacyCreateTypeface that has an SkFontStyle paramete #

Total comments: 4

Patch Set 3 : Remove unnecessary ifdef #

Total comments: 1

Patch Set 4 : Rebase #

Total comments: 6

Patch Set 5 : Only synthetic bold if returned font weight is more than 200 weight units less than requested. #

Total comments: 2

Patch Set 6 : Treat WebKit oblique style as skia italic style #

Total comments: 2

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -9 lines) Patch
M third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 62 (23 generated)
Tom (Use chromium acct)
4 years, 8 months ago (2016-04-22 01:58:08 UTC) #3
eae
LGTM w/nit https://codereview.chromium.org/1912013002/diff/1/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/1912013002/diff/1/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode237 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:237: // FIXME: Use m_fontManager, SkFontStyle and matchFamilyStyle ...
4 years, 8 months ago (2016-04-22 02:05:46 UTC) #4
bungeman-skia
https://codereview.chromium.org/1912013002/diff/1/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/1912013002/diff/1/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode239 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:239: return adoptRef(SkTypeface::CreateFromName(name.data(), fontStyle(fontDescription))); Why not just // FIXME: Use ...
4 years, 8 months ago (2016-04-22 18:15:36 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912013002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912013002/20001
4 years, 8 months ago (2016-04-22 18:34:37 UTC) #8
bungeman-skia
https://codereview.chromium.org/1912013002/diff/20001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/1912013002/diff/20001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode174 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:174: #if OS(WIN) || OS(LINUX) You'll need to remove this ...
4 years, 8 months ago (2016-04-22 18:42:28 UTC) #9
bungeman-skia
https://codereview.chromium.org/1912013002/diff/20001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/1912013002/diff/20001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode174 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:174: #if OS(WIN) || OS(LINUX) On 2016/04/22 18:42:28, bungeman1 wrote: ...
4 years, 8 months ago (2016-04-22 18:44:49 UTC) #10
Tom (Use chromium acct)
https://codereview.chromium.org/1912013002/diff/1/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/1912013002/diff/1/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode237 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:237: // FIXME: Use m_fontManager, SkFontStyle and matchFamilyStyle instead of ...
4 years, 8 months ago (2016-04-22 18:51:53 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912013002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912013002/40001
4 years, 8 months ago (2016-04-22 18:52:12 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/23803) ios_rel_device_gn on ...
4 years, 8 months ago (2016-04-22 18:55:04 UTC) #15
bungeman-skia
https://codereview.chromium.org/1912013002/diff/40001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/1912013002/diff/40001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode239 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:239: fontStyle(fontDescription))); nit: eae probably knows about this better than ...
4 years, 8 months ago (2016-04-22 19:00:21 UTC) #16
eae
On 2016/04/22 19:00:21, bungeman1 wrote: > https://codereview.chromium.org/1912013002/diff/40001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp > File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): > > https://codereview.chromium.org/1912013002/diff/40001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode239 > ...
4 years, 8 months ago (2016-04-22 19:01:30 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912013002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912013002/40001
4 years, 8 months ago (2016-04-22 19:04:10 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/217539) ios_dbg_simulator_gn on ...
4 years, 8 months ago (2016-04-22 19:08:09 UTC) #21
bungeman-skia
Just wanted to say that I went and built with this for Android and it ...
4 years, 8 months ago (2016-04-22 19:49:58 UTC) #22
blink-reviews
I was having a similar issue here: https://deb53d85a427140a6e10ee61e1ceb3408c8407f2.googledrive.com/host/0B153_ao11p4QR2s3RWRXMUhJa1U/notosanscjk_weights.html The 100 and 300 font weights were ...
4 years, 8 months ago (2016-04-22 20:05:13 UTC) #24
bungeman-skia
On 2016/04/22 20:05:13, blink-reviews wrote: > I was having a similar issue here: > https://deb53d85a427140a6e10ee61e1ceb3408c8407f2.googledrive.com/host/0B153_ao11p4QR2s3RWRXMUhJa1U/notosanscjk_weights.html ...
4 years, 8 months ago (2016-04-22 20:15:09 UTC) #25
bungeman-skia
On 2016/04/22 20:15:09, bungeman1 wrote: > On 2016/04/22 20:05:13, blink-reviews wrote: > > I was ...
4 years, 8 months ago (2016-04-22 20:27:26 UTC) #26
chromium-reviews
I was having a similar issue here: https://deb53d85a427140a6e10ee61e1ceb3408c8407f2.googledrive.com/host/0B153_ao11p4QR2s3RWRXMUhJa1U/notosanscjk_weights.html The 100 and 300 font weights were ...
4 years, 8 months ago (2016-04-22 20:30:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912013002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912013002/60001
4 years, 8 months ago (2016-04-23 01:20:53 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/217845)
4 years, 8 months ago (2016-04-23 03:39:44 UTC) #32
bungeman-skia
https://codereview.chromium.org/1912013002/diff/60001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (right): https://codereview.chromium.org/1912013002/diff/60001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#newcode157 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:157: static inline SkFontStyle fontStyle(const FontDescription& fontDescription) Looks like this ...
4 years, 8 months ago (2016-04-25 14:58:01 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912013002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912013002/80001
4 years, 8 months ago (2016-04-25 18:59:02 UTC) #35
Tom (Use chromium acct)
Thanks for working with me on this, Ben. Can you verify the synthetic bolding issue ...
4 years, 8 months ago (2016-04-25 19:02:21 UTC) #36
bungeman-skia
https://codereview.chromium.org/1912013002/diff/80001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (left): https://codereview.chromium.org/1912013002/diff/80001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#oldcode206 third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp:206: style |= SkTypeface::kItalic; This or'ed in kItalic if the ...
4 years, 8 months ago (2016-04-25 19:18:03 UTC) #37
bungeman-skia
On 2016/04/25 19:18:03, bungeman1 wrote: > https://codereview.chromium.org/1912013002/diff/80001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp > File third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp (left): > > https://codereview.chromium.org/1912013002/diff/80001/third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp#oldcode206 > ...
4 years, 8 months ago (2016-04-25 19:49:52 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/218353)
4 years, 8 months ago (2016-04-25 21:46:19 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912013002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912013002/100001
4 years, 8 months ago (2016-04-26 00:24:12 UTC) #42
Tom (Use chromium acct)
I'm not 100% sure, but I don't think FontCustomPlatformData::fontPlatformData has an issue with synthetic bold ...
4 years, 8 months ago (2016-04-26 00:36:16 UTC) #43
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/211200)
4 years, 8 months ago (2016-04-26 03:47:11 UTC) #45
bungeman-skia
https://codereview.chromium.org/1912013002/diff/100001/third_party/WebKit/Source/platform/fonts/FontDescription.cpp File third_party/WebKit/Source/platform/fonts/FontDescription.cpp (right): https://codereview.chromium.org/1912013002/diff/100001/third_party/WebKit/Source/platform/fonts/FontDescription.cpp#newcode284 third_party/WebKit/Source/platform/fonts/FontDescription.cpp:284: // FIXME: handle oblique styles when they're supported in ...
4 years, 7 months ago (2016-04-27 20:42:14 UTC) #46
Tom (Use chromium acct)
Thanks for adding the oblique support. I'll hold off on submitting until your new CL ...
4 years, 7 months ago (2016-04-27 20:46:56 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912013002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912013002/120001
4 years, 7 months ago (2016-04-28 16:35:16 UTC) #49
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 17:45:57 UTC) #51
Tom (Use chromium acct)
https://codereview.chromium.org/1912013002/diff/100001/third_party/WebKit/Source/platform/fonts/FontDescription.cpp File third_party/WebKit/Source/platform/fonts/FontDescription.cpp (right): https://codereview.chromium.org/1912013002/diff/100001/third_party/WebKit/Source/platform/fonts/FontDescription.cpp#newcode284 third_party/WebKit/Source/platform/fonts/FontDescription.cpp:284: // FIXME: handle oblique styles when they're supported in ...
4 years, 7 months ago (2016-04-28 17:49:20 UTC) #52
bungeman-chromium
lgtm, seems to work well everywhere. On the other hand it is annoying that this ...
4 years, 7 months ago (2016-04-28 18:09:37 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912013002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912013002/120001
4 years, 7 months ago (2016-04-28 18:20:28 UTC) #57
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-04-28 18:25:21 UTC) #59
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/f24ce736e38fa9b159d59dab44b7cc2c69a67849 Cr-Commit-Position: refs/heads/master@{#390426}
4 years, 7 months ago (2016-04-30 17:19:43 UTC) #60
jungshik at Google
4 years, 7 months ago (2016-05-16 19:56:32 UTC) #62
Message was sent while issue was closed.
On 2016/04/28 18:09:37, bungeman-chromium wrote:
> lgtm, seems to work well everywhere. On the other hand it is annoying that
this
> doesn't hit any layout tests. It appears that the reason for that on linux is
> that the default fonts on the bots only have normal and bold weights, so we're
> not seeing any changes there.  On Android we're only running the "smoke tests"
> and I doubt any of them exercise this. Something for the future I suppose

This is great. I'll add all 6 weights of Roboto and all 6 (or 7) weights of Noto
Sans CJK to Chrome OS. Then, at least, we can make a layout test for this on
Linux with cros=1 (I believe) once cros font package for testing is updated.

Powered by Google App Engine
This is Rietveld 408576698