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

Issue 789583002: Updates subpixel positioning and hinting when DSF is changed (Closed)

Created:
6 years ago by Jun Mukai
Modified:
6 years ago
Reviewers:
Daniel Erat, oshima, msw
CC:
chromium-reviews, sadrul, derat+watch_chromium.org, jam, darin-cc_chromium.org, kalyank, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Updates subpixel positioning and hinting when DSF is changed See the bug to see the screenshot of problematic rendering and the result of this fix. There are several TODOs though: - Renderers still remember the old font params. - Changing hinting params will change the bounding box of the text, which means we should re-layout several views. This will be addressed by other CLs. - Ideally, the font render params should change based on the display where the text is rendered. BUG=441439 R=oshima@chromium.org, derat@chromium.org, msw@chromium.org TEST=the new test case covers Committed: https://crrev.com/5dad2e71ac9f6b229590e23d2ddfef99dceb11b9 Cr-Commit-Position: refs/heads/master@{#308462}

Patch Set 1 #

Patch Set 2 : typo fix #

Patch Set 3 : ios fix #

Patch Set 4 : GN #

Total comments: 2

Patch Set 5 : limit the change to mostly chromeos only #

Patch Set 6 : cleanup #

Total comments: 2

Patch Set 7 : const fix #

Patch Set 8 : cleanup comment #

Patch Set 9 : linux fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -32 lines) Patch
M ash/display/display_manager.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/display/display_manager.cc View 1 2 3 4 2 chunks +8 lines, -7 lines 0 comments Download
M ash/display/display_manager_unittest.cc View 1 2 3 4 8 chunks +30 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/font_render_params.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M ui/gfx/font_render_params.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/font_render_params_linux.cc View 1 2 3 4 5 6 7 8 6 chunks +24 lines, -13 lines 0 comments Download
M ui/gfx/platform_font.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/platform_font_ios.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/platform_font_ios.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/platform_font_mac.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/platform_font_mac.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/platform_font_pango.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M ui/gfx/platform_font_pango.cc View 1 2 3 4 5 6 3 chunks +19 lines, -1 line 0 comments Download
M ui/gfx/platform_font_win.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/platform_font_win.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (4 generated)
Jun Mukai
6 years ago (2014-12-09 01:14:32 UTC) #1
Daniel Erat
a high-level comment. also, could you open a separate bug to track this (and describe ...
6 years ago (2014-12-09 16:24:35 UTC) #2
Jun Mukai
Uploaded a new patchset, I believe this addresses the comments. PTAL.
6 years ago (2014-12-11 23:58:47 UTC) #3
Jun Mukai
replying the comment... https://codereview.chromium.org/789583002/diff/60001/ui/gfx/font_render_params.h File ui/gfx/font_render_params.h (right): https://codereview.chromium.org/789583002/diff/60001/ui/gfx/font_render_params.h#newcode89 ui/gfx/font_render_params.h:89: class GFX_EXPORT FontRenderParamsRewriter { On 2014/12/09 ...
6 years ago (2014-12-12 00:04:49 UTC) #4
Daniel Erat
thanks! i'm happier with this approach, but one more suggestion. :-) https://codereview.chromium.org/789583002/diff/100001/ui/gfx/platform_font_pango.h File ui/gfx/platform_font_pango.h (right): ...
6 years ago (2014-12-12 15:54:58 UTC) #5
Jun Mukai
https://codereview.chromium.org/789583002/diff/100001/ui/gfx/platform_font_pango.h File ui/gfx/platform_font_pango.h (right): https://codereview.chromium.org/789583002/diff/100001/ui/gfx/platform_font_pango.h#newcode99 ui/gfx/platform_font_pango.h:99: mutable float device_scale_factor_; On 2014/12/12 15:54:58, Daniel Erat wrote: ...
6 years ago (2014-12-12 19:40:12 UTC) #6
Daniel Erat
lgtm
6 years ago (2014-12-12 19:59:06 UTC) #7
Jun Mukai
msw, could you review this? asvitkine is off until January...
6 years ago (2014-12-12 20:26:19 UTC) #9
msw
441495 must be the wrong bug number. I'm missing some context without the correct bug ...
6 years ago (2014-12-15 21:13:23 UTC) #10
Jun Mukai
On 2014/12/15 21:13:23, msw wrote: > 441495 must be the wrong bug number. I'm missing ...
6 years ago (2014-12-15 21:16:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789583002/140001
6 years ago (2014-12-15 22:30:29 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/43180)
6 years ago (2014-12-15 22:39:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789583002/160001
6 years ago (2014-12-15 22:48:59 UTC) #17
commit-bot: I haz the power
Committed patchset #9 (id:160001)
6 years ago (2014-12-16 00:00:47 UTC) #18
commit-bot: I haz the power
6 years ago (2014-12-16 00:01:43 UTC) #19
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/5dad2e71ac9f6b229590e23d2ddfef99dceb11b9
Cr-Commit-Position: refs/heads/master@{#308462}

Powered by Google App Engine
This is Rietveld 408576698