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

Issue 407763003: linux: Avoid using unset Fontconfig properties. (Closed)

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

Description

linux: Avoid using unset Fontconfig properties. Check the return values from FcPatternGet*() so unset properties won't override the defaults from LinuxFontDelegate. Most properties have default values assigned to them by Fontconfig, but subpixel rendering notably doesn't. BUG=395014 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284697

Patch Set 1 #

Total comments: 9

Patch Set 2 : s/orig/original/ #

Patch Set 3 : only build font_render_params_linux_unittest.cc when using pango #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -16 lines) Patch
M ui/gfx/BUILD.gn View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M ui/gfx/font_render_params_linux.cc View 1 chunk +20 lines, -13 lines 0 comments Download
M ui/gfx/font_render_params_linux_unittest.cc View 1 3 chunks +59 lines, -0 lines 0 comments Download
M ui/gfx/gfx_tests.gyp View 1 2 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Daniel Erat
6 years, 5 months ago (2014-07-21 21:43:54 UTC) #1
msw
This CL fixes issue 395014 (but not Issue 395090) for me. That's the result we ...
6 years, 5 months ago (2014-07-21 22:19:48 UTC) #2
Daniel Erat
https://codereview.chromium.org/407763003/diff/1/ui/gfx/font_render_params_linux_unittest.cc File ui/gfx/font_render_params_linux_unittest.cc (right): https://codereview.chromium.org/407763003/diff/1/ui/gfx/font_render_params_linux_unittest.cc#newcode80 ui/gfx/font_render_params_linux_unittest.cc:80: const LinuxFontDelegate* orig_font_delegate_; On 2014/07/21 22:19:48, msw wrote: > ...
6 years, 5 months ago (2014-07-21 22:34:33 UTC) #3
msw
lgtm with the hanging question about pango
6 years, 5 months ago (2014-07-21 22:41:43 UTC) #4
Daniel Erat
https://codereview.chromium.org/407763003/diff/1/ui/gfx/font_render_params_linux_unittest.cc File ui/gfx/font_render_params_linux_unittest.cc (right): https://codereview.chromium.org/407763003/diff/1/ui/gfx/font_render_params_linux_unittest.cc#newcode14 ui/gfx/font_render_params_linux_unittest.cc:14: #include "ui/gfx/pango_util.h" On 2014/07/21 22:19:48, msw wrote: > Should ...
6 years, 5 months ago (2014-07-21 22:54:42 UTC) #5
msw
https://codereview.chromium.org/407763003/diff/1/ui/gfx/font_render_params_linux_unittest.cc File ui/gfx/font_render_params_linux_unittest.cc (right): https://codereview.chromium.org/407763003/diff/1/ui/gfx/font_render_params_linux_unittest.cc#newcode14 ui/gfx/font_render_params_linux_unittest.cc:14: #include "ui/gfx/pango_util.h" On 2014/07/21 22:54:42, Daniel Erat wrote: > ...
6 years, 5 months ago (2014-07-21 23:38:30 UTC) #6
Daniel Erat
On 2014/07/21 23:38:30, msw wrote: > https://codereview.chromium.org/407763003/diff/1/ui/gfx/font_render_params_linux_unittest.cc > File ui/gfx/font_render_params_linux_unittest.cc (right): > > https://codereview.chromium.org/407763003/diff/1/ui/gfx/font_render_params_linux_unittest.cc#newcode14 > ...
6 years, 5 months ago (2014-07-22 13:34:10 UTC) #7
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-22 14:22:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/407763003/40001
6 years, 5 months ago (2014-07-22 14:22:41 UTC) #9
commit-bot: I haz the power
Change committed as 284697
6 years, 5 months ago (2014-07-22 16:20:31 UTC) #10
behdad_google
FWIW not setting subpixel order by default makes sense and is intended. You can't guess ...
6 years, 5 months ago (2014-07-22 18:27:23 UTC) #11
Daniel Erat
6 years, 5 months ago (2014-07-22 18:30:55 UTC) #12
Message was sent while issue was closed.
On 2014/07/22 18:27:23, behdad_google wrote:
> FWIW not setting subpixel order by default makes sense and is intended.  You
> can't guess the user's display subpixel order.  Guessing wrong is
catastrophic. 
> Whereas for other settings, it's ok to just choose one setting.

why doesn't antialiasing have a default?

Powered by Google App Engine
This is Rietveld 408576698