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

Issue 2278143002: Filter font list, use Fontconfig and build on Ozone (Closed)

Created:
4 years, 3 months ago by drott
Modified:
4 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Filter font list, use Fontconfig and build on Ozone Since we dropped support for rendering Type 1 fonts in Chrome, we should filter the list of fonts that can be configured as defaults to only display fonts that have the right font format, i.e. TrueType or CFF. A a side effect, this allows us to build the font list enumeration for ozone as well, as it is only dependent on Fontconfig after this CL, not dependent on Pango anymore. For backwards compability with the old implementation, we're adding three Fontconfig alias families Sans, Serif and Monospace to the list, since our default settings on Linux included the "Monospace" family for the fixed width font. BUG=630508, 457307 Committed: https://crrev.com/e70ca0a2e161e47a7f36f94c19e5a9c6448a15b9 Cr-Commit-Position: refs/heads/master@{#414677}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Review comments by derat@ addressed #

Patch Set 3 : Review comments by derat@ addressed, trying to fix mac and Android builds #

Total comments: 5

Patch Set 4 : Review comments by avi@ addressed #

Total comments: 1

Patch Set 5 : Copyright line fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -83 lines) Patch
M content/common/BUILD.gn View 1 2 2 chunks +7 lines, -13 lines 0 comments Download
A content/common/font_list_fontconfig.cc View 1 2 3 4 1 chunk +72 lines, -0 lines 0 comments Download
D content/common/font_list_ozone.cc View 1 chunk +0 lines, -15 lines 0 comments Download
D content/common/font_list_pango.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M content/content_common.gypi View 1 3 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 48 (26 generated)
drott
Ozone owners added just in case. PTAL.
4 years, 3 months ago (2016-08-25 13:42:06 UTC) #5
Daniel Erat
generally lgtm, but i'll let behdad comment on the fontconfig parts. https://codereview.chromium.org/2278143002/diff/1/content/common/font_list_fontconfig.cc File content/common/font_list_fontconfig.cc (right): ...
4 years, 3 months ago (2016-08-25 13:49:57 UTC) #8
drott
Review comments by derat@ addressed
4 years, 3 months ago (2016-08-25 14:13:05 UTC) #11
drott
Review comments by derat@ addressed, trying to fix mac and Android builds
4 years, 3 months ago (2016-08-25 14:17:42 UTC) #14
drott
On 2016/08/25 at 13:49:57, derat wrote: > generally lgtm, but i'll let behdad comment on ...
4 years, 3 months ago (2016-08-25 14:18:52 UTC) #17
drott
I am going to land this and ask Behdad to take a look when he's ...
4 years, 3 months ago (2016-08-25 18:51:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278143002/40001
4 years, 3 months ago (2016-08-25 18:52:30 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/246312)
4 years, 3 months ago (2016-08-25 19:03:44 UTC) #25
rjkroege
I don't really understand this change. Can you explain why it's desirable? https://codereview.chromium.org/2278143002/diff/40001/content/common/BUILD.gn File content/common/BUILD.gn ...
4 years, 3 months ago (2016-08-25 19:17:16 UTC) #26
drott
On 2016/08/25 at 19:17:16, rjkroege wrote: > I don't really understand this change. Can you ...
4 years, 3 months ago (2016-08-25 19:29:44 UTC) #28
drott
content/ OWNERS avi@, pfeldman@, sievers@, piman@, PTAL.
4 years, 3 months ago (2016-08-25 19:30:33 UTC) #29
spang
On 2016/08/25 19:29:44, drott wrote: > On 2016/08/25 at 19:17:16, rjkroege wrote: > > I ...
4 years, 3 months ago (2016-08-25 19:40:07 UTC) #30
Avi (use Gerrit)
https://codereview.chromium.org/2278143002/diff/40001/content/common/font_list_fontconfig.cc File content/common/font_list_fontconfig.cc (right): https://codereview.chromium.org/2278143002/diff/40001/content/common/font_list_fontconfig.cc#newcode1 content/common/font_list_fontconfig.cc:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
4 years, 3 months ago (2016-08-25 19:54:54 UTC) #31
drott
Review comments by avi@ addressed
4 years, 3 months ago (2016-08-25 20:08:31 UTC) #32
drott
Thanks for the review, CL updated. https://codereview.chromium.org/2278143002/diff/40001/content/common/font_list_fontconfig.cc File content/common/font_list_fontconfig.cc (right): https://codereview.chromium.org/2278143002/diff/40001/content/common/font_list_fontconfig.cc#newcode1 content/common/font_list_fontconfig.cc:1: // Copyright (c) ...
4 years, 3 months ago (2016-08-25 20:09:13 UTC) #34
Avi (use Gerrit)
lgtm with fix. https://codereview.chromium.org/2278143002/diff/60001/content/common/font_list_fontconfig.cc File content/common/font_list_fontconfig.cc (right): https://codereview.chromium.org/2278143002/diff/60001/content/common/font_list_fontconfig.cc#newcode1 content/common/font_list_fontconfig.cc:1: // Copyright (c) 2016 The Chromium ...
4 years, 3 months ago (2016-08-25 20:13:07 UTC) #36
drott
Copyright line fixed
4 years, 3 months ago (2016-08-25 20:22:48 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278143002/10006
4 years, 3 months ago (2016-08-25 20:23:15 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281483)
4 years, 3 months ago (2016-08-25 23:08:38 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278143002/10006
4 years, 3 months ago (2016-08-26 07:16:16 UTC) #45
commit-bot: I haz the power
Committed patchset #5 (id:10006)
4 years, 3 months ago (2016-08-26 09:25:00 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 09:26:44 UTC) #48
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e70ca0a2e161e47a7f36f94c19e5a9c6448a15b9
Cr-Commit-Position: refs/heads/master@{#414677}

Powered by Google App Engine
This is Rietveld 408576698