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

Issue 1883483002: Add code to call skia's matchFamilyStyleCharacter API, which uses the (Closed)

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

Description

Add code to call skia's matchFamilyStyleCharacter API Add code to call skia's matchFamilyStyleCharacter API, which uses the DirectWrite font fallback to find fonts for characters that do not exist in the default font. The FontCache and FontDescription changes are refactorings of shared code out of FontCacheAndroid and FontCacheSkiaWin. The FontCacheSkiaWin change adds logic to call skia's matchFamilyStyleCharacter API, which will ultimately call into DirectWrite. This is part 3 of a three part change. 1: https://codereview.chromium.org/1878843002/ Adds support for specifying a font fallback in skia 2: https://codereview.chromium.org/1846433005/ Implements the fallback proxy in Chromium 3: https://codereview.chromium.org/1883483002/ Adds code to blink to call skia's fallback API BUG=459056 patch from issue 1740593002 at patchset 140001 (http://crrev.com/1740593002#ps140001) Committed: https://crrev.com/a56c8cae378b8110503230b358350fc755576f84 Cr-Commit-Position: refs/heads/master@{#388830}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase #

Patch Set 3 : Add a DEPS change to pull in dependency for testing #

Patch Set 4 : Pull in latest change #

Patch Set 5 : Add an option to bypass Skia's fallback when IDWriteFontFallback is not available #

Patch Set 6 : Pull in part 2 changes #

Patch Set 7 : Add expectation for font-fallback failure on Win7 and revert DEPS change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -40 lines) Patch
M content/child/dwrite_font_proxy/dwrite_font_proxy_init_win.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/font-fallback-win.html View 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/font-fallback-win-expected.html View 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.h View 1 2 3 4 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontCache.cpp View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontDescription.cpp View 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontTraits.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp View 1 4 chunks +3 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/win/FontCacheSkiaWin.cpp View 1 2 3 4 2 chunks +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/win/WebFontRendering.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/win/WebFontRendering.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 31 (16 generated)
Ilya Kulshin
ptal. This change was reviewed and lgtm'd as https://codereview.chromium.org/1740593002, but I never landed the original ...
4 years, 8 months ago (2016-04-12 21:24:09 UTC) #3
eae
LGTM
4 years, 8 months ago (2016-04-13 15:53:42 UTC) #4
drott
https://codereview.chromium.org/1883483002/diff/1/third_party/WebKit/Source/platform/fonts/FontDescription.cpp File third_party/WebKit/Source/platform/fonts/FontDescription.cpp (right): https://codereview.chromium.org/1883483002/diff/1/third_party/WebKit/Source/platform/fonts/FontDescription.cpp#newcode281 third_party/WebKit/Source/platform/fonts/FontDescription.cpp:281: SkFontStyle FontDescription::skiaFontStyle() const FontCacheSkia has a static inline SkFontStyle ...
4 years, 8 months ago (2016-04-13 17:36:21 UTC) #6
Ilya Kulshin
On 2016/04/13 17:36:21, drott wrote: > https://codereview.chromium.org/1883483002/diff/1/third_party/WebKit/Source/platform/fonts/FontDescription.cpp > File third_party/WebKit/Source/platform/fonts/FontDescription.cpp (right): > > https://codereview.chromium.org/1883483002/diff/1/third_party/WebKit/Source/platform/fonts/FontDescription.cpp#newcode281 > ...
4 years, 8 months ago (2016-04-13 19:17:32 UTC) #8
drott
> I'm removing that implementation in favor of adding that functionality to FontDescription in this ...
4 years, 8 months ago (2016-04-13 19:35:57 UTC) #9
Ilya Kulshin
ptal. I had to make a change to add an option to blink to bypass ...
4 years, 8 months ago (2016-04-19 21:34:58 UTC) #14
eae
Still looks good to me.
4 years, 8 months ago (2016-04-20 00:29:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883483002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883483002/150001
4 years, 8 months ago (2016-04-20 19:12:51 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/170940)
4 years, 8 months ago (2016-04-20 19:20:35 UTC) #21
Ilya Kulshin
+jochen@ - could I get an owners approval for third_party/WebKit/Source/web/win/WebFontRendering.*?
4 years, 8 months ago (2016-04-20 20:02:13 UTC) #23
jochen (gone - plz use gerrit)
lgtm
4 years, 8 months ago (2016-04-21 14:47:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883483002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883483002/150001
4 years, 8 months ago (2016-04-21 17:06:52 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:150001)
4 years, 8 months ago (2016-04-21 18:50:45 UTC) #28
apacible
A revert of this CL (patchset #7 id:150001) has been created in https://codereview.chromium.org/1911863002/ by apacible@chromium.org. ...
4 years, 8 months ago (2016-04-21 20:53:00 UTC) #29
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:36:51 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a56c8cae378b8110503230b358350fc755576f84
Cr-Commit-Position: refs/heads/master@{#388830}

Powered by Google App Engine
This is Rietveld 408576698