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

Issue 382273002: ui/gfx: Allow for font-specific rendering settings. (Closed)

Created:
6 years, 5 months ago by Daniel Erat
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

ui/gfx: Allow for font-specific rendering settings. Let implementations attach a FontRenderParams to a gfx::PlatformFont rather than using a single default everywhere. On Linux and Chrome OS, query FontConfig for font-specific rendering settings. BUG=125235, 375824 TBR=jorgelo@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283001

Patch Set 1 #

Patch Set 2 : diff against https://codereview.chromium.org/387743002/ #

Total comments: 64

Patch Set 3 : address review feedback #

Total comments: 21

Patch Set 4 : address more comments #

Total comments: 4

Patch Set 5 : simplify fontconfig pattern-reading and update TODOs #

Patch Set 6 : merge #

Patch Set 7 : add missing base/logging.h include for android #

Patch Set 8 : fix fontconfig leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -158 lines) Patch
M content/browser/renderer_host/sandbox_ipc_linux.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/font.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/font.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/font_render_params.h View 1 2 3 4 2 chunks +15 lines, -5 lines 0 comments Download
M ui/gfx/font_render_params_android.cc View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M ui/gfx/font_render_params_linux.cc View 1 2 3 4 5 6 7 3 chunks +132 lines, -51 lines 0 comments Download
M ui/gfx/pango_util.cc View 1 2 3 chunks +10 lines, -24 lines 0 comments Download
M ui/gfx/platform_font.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/platform_font_ios.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/platform_font_ios.mm View 2 chunks +7 lines, -0 lines 0 comments Download
M ui/gfx/platform_font_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/platform_font_mac.mm View 2 chunks +7 lines, -0 lines 0 comments Download
M ui/gfx/platform_font_pango.h View 1 2 6 chunks +13 lines, -6 lines 0 comments Download
M ui/gfx/platform_font_pango.cc View 1 2 3 9 chunks +56 lines, -61 lines 0 comments Download
M ui/gfx/platform_font_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/platform_font_win.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M ui/gfx/render_text_pango.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Daniel Erat
i haven't sent this to the bots yet since it's based on another CL that's ...
6 years, 5 months ago (2014-07-11 17:15:29 UTC) #1
Daniel Erat
https://codereview.chromium.org/382273002/diff/20001/ui/gfx/platform_font_pango.cc File ui/gfx/platform_font_pango.cc (right): https://codereview.chromium.org/382273002/diff/20001/ui/gfx/platform_font_pango.cc#newcode157 ui/gfx/platform_font_pango.cc:157: GetCustomFontRenderParams(false, &family_list, &new_size, NULL, NULL); calling this is only ...
6 years, 5 months ago (2014-07-11 18:08:41 UTC) #2
Daniel Erat
(in case you're waiting for the next revision: i was holding off on uploading it ...
6 years, 5 months ago (2014-07-11 23:45:02 UTC) #3
msw
Sorry for the heavy comments, this is a heavy patch! https://codereview.chromium.org/382273002/diff/20001/ui/gfx/font_list.h File ui/gfx/font_list.h (right): https://codereview.chromium.org/382273002/diff/20001/ui/gfx/font_list.h#newcode115 ...
6 years, 5 months ago (2014-07-12 00:27:34 UTC) #4
Daniel Erat
https://codereview.chromium.org/382273002/diff/20001/ui/gfx/font_list.h File ui/gfx/font_list.h (right): https://codereview.chromium.org/382273002/diff/20001/ui/gfx/font_list.h#newcode115 ui/gfx/font_list.h:115: // Returns an object describing how the primary font ...
6 years, 5 months ago (2014-07-12 01:55:33 UTC) #5
msw
https://codereview.chromium.org/382273002/diff/20001/ui/gfx/font_list.h File ui/gfx/font_list.h (right): https://codereview.chromium.org/382273002/diff/20001/ui/gfx/font_list.h#newcode115 ui/gfx/font_list.h:115: // Returns an object describing how the primary font ...
6 years, 5 months ago (2014-07-12 02:26:41 UTC) #6
Daniel Erat
https://codereview.chromium.org/382273002/diff/20001/ui/gfx/font_render_params_linux.cc File ui/gfx/font_render_params_linux.cc (right): https://codereview.chromium.org/382273002/diff/20001/ui/gfx/font_render_params_linux.cc#newcode175 ui/gfx/font_render_params_linux.cc:175: params.antialiasing = true; On 2014/07/12 02:26:40, msw wrote: > ...
6 years, 5 months ago (2014-07-12 02:44:39 UTC) #7
msw
LGTM with an optional nit (and modulo switch return errors). https://codereview.chromium.org/382273002/diff/40001/ui/gfx/font_render_params_linux.cc File ui/gfx/font_render_params_linux.cc (right): https://codereview.chromium.org/382273002/diff/40001/ui/gfx/font_render_params_linux.cc#newcode29 ...
6 years, 5 months ago (2014-07-12 17:57:11 UTC) #8
Daniel Erat
https://codereview.chromium.org/382273002/diff/40001/ui/gfx/font_render_params_linux.cc File ui/gfx/font_render_params_linux.cc (right): https://codereview.chromium.org/382273002/diff/40001/ui/gfx/font_render_params_linux.cc#newcode31 ui/gfx/font_render_params_linux.cc:31: switch (hint_style) { On 2014/07/12 17:57:11, msw wrote: > ...
6 years, 5 months ago (2014-07-14 14:59:16 UTC) #9
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-14 14:59:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/382273002/100001
6 years, 5 months ago (2014-07-14 15:01:02 UTC) #11
Daniel Erat
TBR jorgelo@ for sandbox
6 years, 5 months ago (2014-07-14 15:49:55 UTC) #12
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-14 15:50:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/382273002/120001
6 years, 5 months ago (2014-07-14 15:50:12 UTC) #14
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-14 17:07:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/382273002/140001
6 years, 5 months ago (2014-07-14 17:07:43 UTC) #16
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 19:40:59 UTC) #17
Message was sent while issue was closed.
Change committed as 283001

Powered by Google App Engine
This is Rietveld 408576698