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

Issue 354023007: Use DirectWrite to populate list of avalible fonts (Closed)

Created:
6 years, 6 months ago by eae
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use DirectWrite to populate list of avalible fonts Use the DirectWrite API to populate the list of avalible fonts in settings when DirectWrite is enabled. False back on GDI on failure. As GDI and DirectWrite handle font family variants and alternate names differently this ensures that all fonts presented in the list are valid options that can be rendered. R=scottmg@chromium.org, cevans@chromium.org BUG=367702, 373494 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280719

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 15

Patch Set 3 : #

Total comments: 2

Patch Set 4 : w/ScopedComPtr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -2 lines) Patch
M content/common/font_list_win.cc View 1 2 3 4 chunks +90 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
eae
This is an early draft of a patch to use DW to populate the font ...
6 years, 6 months ago (2014-06-26 19:46:39 UTC) #1
scottmg
Maybe it could live in skia/ext and potentially use some of the Sk objects then? ...
6 years, 6 months ago (2014-06-26 20:13:39 UTC) #2
eae
Thanks for your input Scott, really helpful. https://codereview.chromium.org/354023007/diff/1/content/common/font_list_win.cc File content/common/font_list_win.cc (right): https://codereview.chromium.org/354023007/diff/1/content/common/font_list_win.cc#newcode111 content/common/font_list_win.cc:111: AddLocalizedFontFamily(font_list, font_family, ...
6 years, 6 months ago (2014-06-26 20:58:24 UTC) #3
scottmg
https://codereview.chromium.org/354023007/diff/1/content/common/font_list_win.cc File content/common/font_list_win.cc (right): https://codereview.chromium.org/354023007/diff/1/content/common/font_list_win.cc#newcode111 content/common/font_list_win.cc:111: AddLocalizedFontFamily(font_list, font_family, user_locale); On 2014/06/26 20:58:24, eae wrote: > ...
6 years, 6 months ago (2014-06-26 21:05:17 UTC) #4
eae
On 2014/06/26 21:05:17, scottmg wrote: > https://codereview.chromium.org/354023007/diff/1/content/common/font_list_win.cc > File content/common/font_list_win.cc (right): > > https://codereview.chromium.org/354023007/diff/1/content/common/font_list_win.cc#newcode111 > ...
6 years, 6 months ago (2014-06-26 22:01:40 UTC) #5
eae
PTAL
6 years, 6 months ago (2014-06-26 22:32:07 UTC) #6
scottmg
https://codereview.chromium.org/354023007/diff/40001/content/common/font_list_win.cc File content/common/font_list_win.cc (right): https://codereview.chromium.org/354023007/diff/40001/content/common/font_list_win.cc#newcode34 content/common/font_list_win.cc:34: static void GetFontListInternal_GDI(scoped_ptr<base::ListValue>& font_list) { no & here https://codereview.chromium.org/354023007/diff/40001/content/common/font_list_win.cc#newcode55 ...
6 years, 6 months ago (2014-06-26 22:45:27 UTC) #7
eae
https://codereview.chromium.org/354023007/diff/40001/content/common/font_list_win.cc File content/common/font_list_win.cc (right): https://codereview.chromium.org/354023007/diff/40001/content/common/font_list_win.cc#newcode59 content/common/font_list_win.cc:59: if (SUCCEEDED(font_family->GetFamilyNames(&family_names))) { On 2014/06/26 22:45:27, scottmg wrote: > ...
6 years, 6 months ago (2014-06-26 23:14:58 UTC) #8
scottmg
lgtm
6 years, 6 months ago (2014-06-26 23:48:23 UTC) #9
eae
+cevans for OWNERS
6 years, 6 months ago (2014-06-26 23:58:39 UTC) #10
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/354023007/diff/60001/content/common/font_list_win.cc File content/common/font_list_win.cc (right): https://codereview.chromium.org/354023007/diff/60001/content/common/font_list_win.cc#newcode112 content/common/font_list_win.cc:112: IDWriteFactory* factory = NULL; factory and font_collection should be ...
6 years, 6 months ago (2014-06-27 01:11:28 UTC) #11
Chris Evans
On 2014/06/26 23:58:39, eae wrote: > +cevans for OWNERS I'm only OWNER here for the ...
6 years, 6 months ago (2014-06-27 01:59:07 UTC) #12
eae
-cevans, +jam for OWNERS https://codereview.chromium.org/354023007/diff/60001/content/common/font_list_win.cc File content/common/font_list_win.cc (right): https://codereview.chromium.org/354023007/diff/60001/content/common/font_list_win.cc#newcode112 content/common/font_list_win.cc:112: IDWriteFactory* factory = NULL; On ...
6 years, 6 months ago (2014-06-27 02:14:59 UTC) #13
cpu_(ooo_6.6-7.5)
lgtm
6 years, 5 months ago (2014-06-27 18:02:42 UTC) #14
eae
6 years, 5 months ago (2014-06-30 20:41:59 UTC) #15
jam
lgtm
6 years, 5 months ago (2014-06-30 22:08:35 UTC) #16
eae
Thanks for the review everyone.
6 years, 5 months ago (2014-06-30 22:09:24 UTC) #17
eae
The CQ bit was checked by eae@chromium.org
6 years, 5 months ago (2014-06-30 22:09:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eae@chromium.org/354023007/80001
6 years, 5 months ago (2014-06-30 22:09:45 UTC) #19
commit-bot: I haz the power
Change committed as 280719
6 years, 5 months ago (2014-07-01 00:52:12 UTC) #20
jochen (gone - plz use gerrit)
6 years, 5 months ago (2014-07-01 07:05:31 UTC) #21
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/368523002/ by jochen@chromium.org.

The reason for reverting is: Uses a Vista+ only API.

Powered by Google App Engine
This is Rietveld 408576698