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

Issue 2695523002: Fix font sizes being incorrect when using --force-device-scale-factor. (Closed)

Created:
3 years, 10 months ago by Bret
Modified:
3 years, 10 months ago
CC:
chromium-reviews, robliao+watch_chromium.org, jshin+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix font sizes being incorrect when using --force-device-scale-factor. Normalizes font sizes received from Windows based on the unforced device scale factor, so that when they're scaled up later they end up the right sized for the forced scale. BUG=675933 Review-Url: https://codereview.chromium.org/2695523002 Cr-Commit-Position: refs/heads/master@{#450869} Committed: https://chromium.googlesource.com/chromium/src/+/6cf3aecafe0e4790a0aa0dd8f44602acce121a2e

Patch Set 1 #

Patch Set 2 : adjust comments #

Total comments: 3

Patch Set 3 : move to screen_win #

Total comments: 4

Patch Set 4 : adjust comments #

Total comments: 2

Patch Set 5 : comment tweak #

Patch Set 6 : fix test link #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -13 lines) Patch
M ui/base/l10n/l10n_util_win.cc View 1 2 2 chunks +5 lines, -7 lines 0 comments Download
M ui/base/l10n/l10n_util_win_unittest.cc View 1 2 3 4 5 2 chunks +24 lines, -0 lines 0 comments Download
M ui/display/win/dpi.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/display/win/dpi.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M ui/display/win/screen_win.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M ui/display/win/screen_win.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (11 generated)
Bret
robliao: ui/display/win jshin: ui/base/l10n Rob, I don't really like exposing GetUnforcedDeviceScaleFactor, can you think of ...
3 years, 10 months ago (2017-02-12 03:10:51 UTC) #5
robliao
https://codereview.chromium.org/2695523002/diff/20001/ui/base/l10n/l10n_util_win.cc File ui/base/l10n/l10n_util_win.cc (right): https://codereview.chromium.org/2695523002/diff/20001/ui/base/l10n/l10n_util_win.cc#newcode161 ui/base/l10n/l10n_util_win.cc:161: AdjustUIFontForDIP(display::win::GetUnforcedDeviceScaleFactor(), logfont); Just to make sure I understand this ...
3 years, 10 months ago (2017-02-13 17:57:33 UTC) #6
Bret
https://codereview.chromium.org/2695523002/diff/20001/ui/base/l10n/l10n_util_win.cc File ui/base/l10n/l10n_util_win.cc (right): https://codereview.chromium.org/2695523002/diff/20001/ui/base/l10n/l10n_util_win.cc#newcode161 ui/base/l10n/l10n_util_win.cc:161: AdjustUIFontForDIP(display::win::GetUnforcedDeviceScaleFactor(), logfont); On 2017/02/13 17:57:33, robliao wrote: > Just ...
3 years, 10 months ago (2017-02-14 20:29:20 UTC) #7
robliao
https://codereview.chromium.org/2695523002/diff/20001/ui/base/l10n/l10n_util_win.cc File ui/base/l10n/l10n_util_win.cc (right): https://codereview.chromium.org/2695523002/diff/20001/ui/base/l10n/l10n_util_win.cc#newcode161 ui/base/l10n/l10n_util_win.cc:161: AdjustUIFontForDIP(display::win::GetUnforcedDeviceScaleFactor(), logfont); On 2017/02/14 20:29:20, Bret Sepulveda wrote: > ...
3 years, 10 months ago (2017-02-14 20:43:09 UTC) #8
Bret
On 2017/02/14 20:43:09, robliao wrote: > https://codereview.chromium.org/2695523002/diff/20001/ui/base/l10n/l10n_util_win.cc > File ui/base/l10n/l10n_util_win.cc (right): > > https://codereview.chromium.org/2695523002/diff/20001/ui/base/l10n/l10n_util_win.cc#newcode161 > ...
3 years, 10 months ago (2017-02-15 02:02:36 UTC) #9
robliao
On 2017/02/15 02:02:36, Bret Sepulveda wrote: > On 2017/02/14 20:43:09, robliao wrote: > > > ...
3 years, 10 months ago (2017-02-15 02:22:21 UTC) #10
Bret
On 2017/02/15 02:22:21, robliao wrote: > On 2017/02/15 02:02:36, Bret Sepulveda wrote: > > On ...
3 years, 10 months ago (2017-02-15 02:40:57 UTC) #11
jungshik at Google
ui/base/l10n: LGTM
3 years, 10 months ago (2017-02-15 18:27:33 UTC) #12
robliao
Looks generally good. Two comments. https://codereview.chromium.org/2695523002/diff/40001/ui/base/l10n/l10n_util_win_unittest.cc File ui/base/l10n/l10n_util_win_unittest.cc (right): https://codereview.chromium.org/2695523002/diff/40001/ui/base/l10n/l10n_util_win_unittest.cc#newcode53 ui/base/l10n/l10n_util_win_unittest.cc:53: lf.lfHeight = 18; Document ...
3 years, 10 months ago (2017-02-15 18:43:16 UTC) #13
Bret
https://codereview.chromium.org/2695523002/diff/40001/ui/base/l10n/l10n_util_win_unittest.cc File ui/base/l10n/l10n_util_win_unittest.cc (right): https://codereview.chromium.org/2695523002/diff/40001/ui/base/l10n/l10n_util_win_unittest.cc#newcode53 ui/base/l10n/l10n_util_win_unittest.cc:53: lf.lfHeight = 18; On 2017/02/15 18:43:15, robliao wrote: > ...
3 years, 10 months ago (2017-02-15 20:43:16 UTC) #14
robliao
lgtm + nit. Thanks! https://codereview.chromium.org/2695523002/diff/60001/ui/display/win/screen_win.h File ui/display/win/screen_win.h (right): https://codereview.chromium.org/2695523002/diff/60001/ui/display/win/screen_win.h#newcode109 ui/display/win/screen_win.h:109: // you are on. Nit: ...
3 years, 10 months ago (2017-02-15 22:59:42 UTC) #15
Bret
https://codereview.chromium.org/2695523002/diff/60001/ui/display/win/screen_win.h File ui/display/win/screen_win.h (right): https://codereview.chromium.org/2695523002/diff/60001/ui/display/win/screen_win.h#newcode109 ui/display/win/screen_win.h:109: // you are on. On 2017/02/15 22:59:41, robliao wrote: ...
3 years, 10 months ago (2017-02-15 23:13:46 UTC) #16
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/2695523002/80001
3 years, 10 months ago (2017-02-15 23:15:38 UTC) #19
robliao
Still lgtm. Thanks!
3 years, 10 months ago (2017-02-15 23:17:46 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/212040)
3 years, 10 months ago (2017-02-16 00:08:39 UTC) #22
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/2695523002/100001
3 years, 10 months ago (2017-02-16 02:35:49 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 04:22:30 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/6cf3aecafe0e4790a0aa0dd8f446...

Powered by Google App Engine
This is Rietveld 408576698