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

Issue 251773002: PlatformFontWin::DeriveFontWithHeight insensitive to base font's height (Closed)

Created:
6 years, 8 months ago by Tomasz Moniuszko
Modified:
6 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

PlatformFontWin::DeriveFontWithHeight insensitive to base font's height As a side effect this commit fixes also bug 149151 and allows https://codereview.chromium.org/230793003/ patch to be applied without breaking tests. BUG=367092 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279657

Patch Set 1 #

Total comments: 9

Patch Set 2 : Improvements according to the review. #

Total comments: 1

Patch Set 3 : better font search optimization #

Total comments: 10

Patch Set 4 : PlatformFontWin::DeriveFontWithHeight consistency fix after code review changes #

Total comments: 2

Patch Set 5 : PlatformFontWin::DeriveFontWithHeight consistency fix after code review changes #

Total comments: 2

Patch Set 6 : PlatformFontWin::DeriveFontWithHeight consistency fix after code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -3 lines) Patch
M ui/gfx/platform_font_win.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M ui/gfx/platform_font_win.cc View 1 2 3 4 5 5 chunks +45 lines, -3 lines 0 comments Download
M ui/gfx/platform_font_win_unittest.cc View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Tomasz Moniuszko
6 years, 8 months ago (2014-04-25 12:28:18 UTC) #1
Alexei Svitkine (slow)
Can you expand the CL description to mention which case this is specifically fixing? (e.g. ...
6 years, 8 months ago (2014-04-25 15:56:14 UTC) #2
Tomasz Moniuszko
https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc#newcode124 ui/gfx/platform_font_win.cc:124: if (font_height > height) { The reason for this ...
6 years, 7 months ago (2014-05-08 14:08:17 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc#newcode124 ui/gfx/platform_font_win.cc:124: if (font_height > height) { On 2014/05/08 14:08:17, Tomasz ...
6 years, 7 months ago (2014-05-09 21:17:50 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win_unittest.cc File ui/gfx/platform_font_win_unittest.cc (right): https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win_unittest.cc#newcode71 ui/gfx/platform_font_win_unittest.cc:71: const Font bigger_font(base_font.GetFontName(), base_font.GetFontSize() + 10); Oops, I see ...
6 years, 7 months ago (2014-05-09 21:21:00 UTC) #5
Tomasz Moniuszko
https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc#newcode124 ui/gfx/platform_font_win.cc:124: if (font_height > height) { > That sounds better ...
6 years, 6 months ago (2014-05-29 10:46:40 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc#newcode124 ui/gfx/platform_font_win.cc:124: if (font_height > height) { On 2014/05/29 10:46:40, Tomasz ...
6 years, 6 months ago (2014-05-29 21:13:34 UTC) #7
msw
https://codereview.chromium.org/251773002/diff/10001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/10001/ui/gfx/platform_font_win.cc#newcode122 ui/gfx/platform_font_win.cc:122: while (best_font_height <= height) { Is it possible (and ...
6 years, 6 months ago (2014-05-29 21:34:40 UTC) #8
Tomasz Moniuszko
On 2014/05/29 21:13:34, Alexei Svitkine wrote: > https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc > File ui/gfx/platform_font_win.cc (right): > > https://codereview.chromium.org/251773002/diff/1/ui/gfx/platform_font_win.cc#newcode124 ...
6 years, 6 months ago (2014-06-02 12:38:31 UTC) #9
Tomasz Moniuszko
On 2014/05/29 21:34:40, msw wrote: > https://codereview.chromium.org/251773002/diff/10001/ui/gfx/platform_font_win.cc > File ui/gfx/platform_font_win.cc (right): > > https://codereview.chromium.org/251773002/diff/10001/ui/gfx/platform_font_win.cc#newcode122 > ...
6 years, 6 months ago (2014-06-02 12:56:48 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/251773002/diff/30001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/30001/ui/gfx/platform_font_win.cc#newcode264 ui/gfx/platform_font_win.cc:264: Font PlatformFontWin::DeriveWithCorrectedSize(HFONT base_font) { Make this a free-standing function ...
6 years, 6 months ago (2014-06-02 15:42:55 UTC) #11
Tomasz Moniuszko
https://codereview.chromium.org/251773002/diff/30001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/30001/ui/gfx/platform_font_win.cc#newcode264 ui/gfx/platform_font_win.cc:264: Font PlatformFontWin::DeriveWithCorrectedSize(HFONT base_font) { On 2014/06/02 15:42:55, Alexei Svitkine ...
6 years, 6 months ago (2014-06-11 13:11:56 UTC) #12
Alexei Svitkine (slow)
Looks good, almost there. Thanks! https://codereview.chromium.org/251773002/diff/50001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/50001/ui/gfx/platform_font_win.cc#newcode283 ui/gfx/platform_font_win.cc:283: -(best_font_metrics.tmHeight - best_font_metrics.tmInternalLeading + ...
6 years, 6 months ago (2014-06-11 16:58:48 UTC) #13
Tomasz Moniuszko
https://codereview.chromium.org/251773002/diff/50001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/50001/ui/gfx/platform_font_win.cc#newcode283 ui/gfx/platform_font_win.cc:283: -(best_font_metrics.tmHeight - best_font_metrics.tmInternalLeading + 1); On 2014/06/11 16:58:48, Alexei ...
6 years, 6 months ago (2014-06-12 08:04:24 UTC) #14
Alexei Svitkine (slow)
https://codereview.chromium.org/251773002/diff/70001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/70001/ui/gfx/platform_font_win.cc#newcode280 ui/gfx/platform_font_win.cc:280: if (font_info.lfHeight >= 0) { The only caller of ...
6 years, 6 months ago (2014-06-12 17:58:00 UTC) #15
Tomasz Moniuszko
https://codereview.chromium.org/251773002/diff/70001/ui/gfx/platform_font_win.cc File ui/gfx/platform_font_win.cc (right): https://codereview.chromium.org/251773002/diff/70001/ui/gfx/platform_font_win.cc#newcode280 ui/gfx/platform_font_win.cc:280: if (font_info.lfHeight >= 0) { On 2014/06/12 17:58:00, Alexei ...
6 years, 6 months ago (2014-06-13 08:40:38 UTC) #16
Tomasz Moniuszko
Hello Alexei, Does the patch looks good to you now or it still needs some ...
6 years, 6 months ago (2014-06-23 09:38:17 UTC) #17
Alexei Svitkine (slow)
lgtm, sorry I had missed your previous reply
6 years, 6 months ago (2014-06-23 14:30:36 UTC) #18
Tomasz Moniuszko
The CQ bit was checked by tmoniuszko@opera.com
6 years, 6 months ago (2014-06-24 06:59:43 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmoniuszko@opera.com/251773002/90001
6 years, 6 months ago (2014-06-24 07:00:29 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-24 09:28:46 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-24 10:04:54 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/21261)
6 years, 6 months ago (2014-06-24 10:04:55 UTC) #23
Tomasz Moniuszko
The CQ bit was checked by tmoniuszko@opera.com
6 years, 6 months ago (2014-06-24 13:50:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmoniuszko@opera.com/251773002/90001
6 years, 6 months ago (2014-06-24 13:52:02 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-24 14:37:56 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-24 15:26:24 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/21438)
6 years, 6 months ago (2014-06-24 15:26:25 UTC) #28
Tomasz Moniuszko
The CQ bit was checked by tmoniuszko@opera.com
6 years, 6 months ago (2014-06-25 07:33:47 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmoniuszko@opera.com/251773002/90001
6 years, 6 months ago (2014-06-25 07:34:57 UTC) #30
commit-bot: I haz the power
6 years, 6 months ago (2014-06-25 10:06:44 UTC) #31
Message was sent while issue was closed.
Change committed as 279657

Powered by Google App Engine
This is Rietveld 408576698