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

Issue 235553003: Support sideloaded fonts for DirectWrite (Closed)

Created:
6 years, 8 months ago by scottmg
Modified:
6 years, 8 months ago
Reviewers:
eae, dglazkov
CC:
blink-reviews, jamesr, krit, dsinclair, jbroman, abarth-chromium, danakj, dglazkov+blink, Rik, Stephen Chennney, pdr., rwlbuis
Visibility:
Public.

Description

Support sideloaded fonts for DirectWrite Chrome side is: https://codereview.chromium.org/231763003/ This isn't perfect (using the family name directly rather than doing a name/style/etc. fallback based lookup), but it's simple and works sufficiently for layout tests and local developer use of custom fonts. If we want to in the future, the same interface could be used in conjunction with some skia changes to support custom font collections, which would get the full style matching support. TBR=dglazkov@chromium.org R=eae@chromium.org BUG=333029 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171400

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : add ForTesting, iterator name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M Source/platform/fonts/FontCache.h View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M Source/platform/fonts/skia/FontCacheSkia.cpp View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M Source/platform/fonts/win/FontCacheSkiaWin.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M Source/web/win/WebFontRendering.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M public/web/win/WebFontRendering.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scottmg
6 years, 8 months ago (2014-04-11 18:03:15 UTC) #1
eae
Nice! LGTM w/nits. https://codereview.chromium.org/235553003/diff/10001/Source/platform/fonts/FontCache.h File Source/platform/fonts/FontCache.h (right): https://codereview.chromium.org/235553003/diff/10001/Source/platform/fonts/FontCache.h#newcode107 Source/platform/fonts/FontCache.h:107: static void addSideloadedFont(SkTypeface*); How about addSideloadedFontForTesting ...
6 years, 8 months ago (2014-04-12 10:51:33 UTC) #2
scottmg
https://codereview.chromium.org/235553003/diff/10001/Source/platform/fonts/FontCache.h File Source/platform/fonts/FontCache.h (right): https://codereview.chromium.org/235553003/diff/10001/Source/platform/fonts/FontCache.h#newcode107 Source/platform/fonts/FontCache.h:107: static void addSideloadedFont(SkTypeface*); On 2014/04/12 10:51:33, eae wrote: > ...
6 years, 8 months ago (2014-04-12 15:42:38 UTC) #3
scottmg
tbr dglazkov for plumbing in Source/web/win/WebFontRendering.cpp public/web/win/WebFontRendering.h
6 years, 8 months ago (2014-04-12 15:45:07 UTC) #4
scottmg
The CQ bit was checked by scottmg@chromium.org
6 years, 8 months ago (2014-04-12 16:34:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/235553003/30001
6 years, 8 months ago (2014-04-12 16:34:30 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-12 20:42:13 UTC) #7
Message was sent while issue was closed.
Change committed as 171400

Powered by Google App Engine
This is Rietveld 408576698