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

Issue 2869803005: Support finer grained font weights on Mac. (Closed)

Created:
3 years, 7 months ago by tapted
Modified:
3 years, 7 months ago
CC:
chromium-reviews, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Support finer grained font weights on Mac. We want to explore a MEDIUM weight for button text under Harmony. This is consistent with MD and helps compensate for buttons not using solid black for the font color. The San Francisco font in 10.12 has good support for finer grained weights and is the font Chrome UI is mostly concerned with, so focus testing on that but survey expectations for all supported OS versions. BUG=691891 Review-Url: https://codereview.chromium.org/2869803005 Cr-Commit-Position: refs/heads/master@{#473490} Committed: https://chromium.googlesource.com/chromium/src/+/124eb0b5af215ce2df373be6552228d79090256e

Patch Set 1 : version specifics #

Patch Set 2 : fix compile? #

Patch Set 3 : Solve some mysteries #

Patch Set 4 : Handle nil fonts #

Patch Set 5 : nit comments #

Total comments: 4

Patch Set 6 : respond to comments #

Patch Set 7 : fix 10.11 #

Total comments: 1

Patch Set 8 : self review - tested normal twice #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -42 lines) Patch
M ui/gfx/platform_font_mac.mm View 1 2 3 4 5 6 4 chunks +139 lines, -16 lines 0 comments Download
M ui/gfx/platform_font_mac_unittest.mm View 1 2 3 4 5 6 7 3 chunks +215 lines, -10 lines 0 comments Download
M ui/views/examples/example_combobox_model.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/examples/example_combobox_model.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/examples/text_example.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M ui/views/examples/text_example.cc View 1 2 6 chunks +26 lines, -6 lines 0 comments Download

Messages

Total messages: 69 (59 generated)
tapted
Hi Alexei, please take a look.. Mac font APIs seem to be a bit rubbish ...
3 years, 7 months ago (2017-05-19 07:18:12 UTC) #46
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_mac.mm File ui/gfx/platform_font_mac.mm (right): https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_mac.mm#newcode217 ui/gfx/platform_font_mac.mm:217: // in CTFont{Regular,Medium,Demi,Emphasized,Heavy,Black}Usage. Attempting to Nit: in fits ...
3 years, 7 months ago (2017-05-19 20:31:17 UTC) #49
tapted
https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_mac.mm File ui/gfx/platform_font_mac.mm (right): https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_mac.mm#newcode217 ui/gfx/platform_font_mac.mm:217: // in CTFont{Regular,Medium,Demi,Emphasized,Heavy,Black}Usage. Attempting to On 2017/05/19 20:31:17, Alexei ...
3 years, 7 months ago (2017-05-21 02:47:54 UTC) #50
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/2869803005/240001
3 years, 7 months ago (2017-05-21 02:48:09 UTC) #53
commit-bot: I haz the power
Committed patchset #6 (id:240001) as https://chromium.googlesource.com/chromium/src/+/bc62dfeaf37c83a79f393cb536fb22b39ea87097
3 years, 7 months ago (2017-05-21 03:10:32 UTC) #56
findit-for-me
Findit (https://goo.gl/kROfz5) identified this CL at revision 473457 as the culprit for failures in the ...
3 years, 7 months ago (2017-05-21 03:58:43 UTC) #57
tapted
A revert of this CL (patchset #6 id:240001) has been created in https://codereview.chromium.org/2898613002/ by tapted@chromium.org. ...
3 years, 7 months ago (2017-05-21 04:38:09 UTC) #58
tapted
https://codereview.chromium.org/2869803005/diff/260001/ui/gfx/platform_font_mac_unittest.mm File ui/gfx/platform_font_mac_unittest.mm (right): https://codereview.chromium.org/2869803005/diff/260001/ui/gfx/platform_font_mac_unittest.mm#newcode270 ui/gfx/platform_font_mac_unittest.mm:270: // The fine-grained font weights on 10.11 are incomplete. ...
3 years, 7 months ago (2017-05-22 01:16:37 UTC) #63
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/2869803005/280001
3 years, 7 months ago (2017-05-22 01:23:05 UTC) #66
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 01:54:31 UTC) #69
Message was sent while issue was closed.
Committed patchset #8 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/124eb0b5af215ce2df373be65522...

Powered by Google App Engine
This is Rietveld 408576698