|
|
Created:
3 years, 7 months ago by tapted Modified:
3 years, 7 months ago Reviewers:
Alexei Svitkine (slow) CC:
chromium-reviews, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionSupport 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 #
Messages
Total messages: 69 (59 generated)
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by tapted@chromium.org
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #1 (id:1) has been deleted
Patchset #3 (id:60001) has been deleted
Patchset #3 (id:80001) has been deleted
Patchset #2 (id:40001) has been deleted
Patchset #2 (id:100001) has been deleted
Patchset #2 (id:120001) has been deleted
Patchset #2 (id:140001) has been deleted
Description was changed from ========== Support finer grained font weights on Mac. cl format typo cl format GetFontWeightFromNSFont BUG= ========== to ========== 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.11 and 10.12 has good support for finer grained weights and is the font Chrome UI is mostly concerned with, so focus testing on that. BUG=691891 ==========
Description was changed from ========== 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.11 and 10.12 has good support for finer grained weights and is the font Chrome UI is mostly concerned with, so focus testing on that. BUG=691891 ========== to ========== 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.11 and 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 ==========
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
tapted@chromium.org changed reviewers: + asvitkine@chromium.org
Hi Alexei, please take a look.. Mac font APIs seem to be a bit rubbish for this. Ater a ton of experimentation, this seems to be a viable approach.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_m... File ui/gfx/platform_font_mac.mm (right): https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_m... ui/gfx/platform_font_mac.mm:217: // in CTFont{Regular,Medium,Demi,Emphasized,Heavy,Black}Usage. Attempting to Nit: in fits on previous line? https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_m... File ui/gfx/platform_font_mac_unittest.mm (right): https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_m... ui/gfx/platform_font_mac_unittest.mm:143: // font reveal themselves somehow. Only tested on 10.11+. geez :(
https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_m... File ui/gfx/platform_font_mac.mm (right): https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_m... 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 Svitkine (slow) wrote: > Nit: in fits on previous line? Done. https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_m... File ui/gfx/platform_font_mac_unittest.mm (right): https://codereview.chromium.org/2869803005/diff/220001/ui/gfx/platform_font_m... ui/gfx/platform_font_mac_unittest.mm:143: // font reveal themselves somehow. Only tested on 10.11+. On 2017/05/19 20:31:17, Alexei Svitkine (slow) wrote: > geez :( yah :/. I'll file a rdar for this - the repro case is pretty simple so it may even be fixed. (Although the response may also be something like "ui fonts don't support this").
The CQ bit was checked by tapted@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from asvitkine@chromium.org Link to the patchset: https://codereview.chromium.org/2869803005/#ps240001 (title: "respond to comments")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 240001, "attempt_start_ts": 1495334879745270, "parent_rev": "3cb12d3b5ec5f5b0b4cc850e4cedefdad40f925f", "commit_rev": "bc62dfeaf37c83a79f393cb536fb22b39ea87097"}
Message was sent while issue was closed.
Description was changed from ========== 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.11 and 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 ========== to ========== 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.11 and 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@{#473457} Committed: https://chromium.googlesource.com/chromium/src/+/bc62dfeaf37c83a79f393cb536fb... ==========
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as https://chromium.googlesource.com/chromium/src/+/bc62dfeaf37c83a79f393cb536fb...
Message was sent while issue was closed.
Findit (https://goo.gl/kROfz5) identified this CL at revision 473457 as the culprit for failures in the build cycles as shown on: https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:240001) has been created in https://codereview.chromium.org/2898613002/ by tapted@chromium.org. The reason for reverting is: Need to test 10.11 again. failures in the build cycle at https://luci-milo.appspot.com/buildbot/chromium.mac/Mac10.11%20Tests/12666.
Message was sent while issue was closed.
Description was changed from ========== 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.11 and 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@{#473457} Committed: https://chromium.googlesource.com/chromium/src/+/bc62dfeaf37c83a79f393cb536fb... ========== to ========== 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.11 and 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@{#473457} Committed: https://chromium.googlesource.com/chromium/src/+/bc62dfeaf37c83a79f393cb536fb... ==========
Description was changed from ========== 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.11 and 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@{#473457} Committed: https://chromium.googlesource.com/chromium/src/+/bc62dfeaf37c83a79f393cb536fb... ========== to ========== 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 ==========
The CQ bit was checked by tapted@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
https://codereview.chromium.org/2869803005/diff/260001/ui/gfx/platform_font_m... File ui/gfx/platform_font_mac_unittest.mm (right): https://codereview.chromium.org/2869803005/diff/260001/ui/gfx/platform_font_m... ui/gfx/platform_font_mac_unittest.mm:270: // The fine-grained font weights on 10.11 are incomplete. Naive of me to think that there was even one OS version where Apple didn't mess around with their fonts :/.. 10.11 is San Francisco but a "different" San Francisco, which is missing some weights. It's consistent otherwise though. The other OSes were happy in the waterfall https://build.chromium.org/p/chromium.mac/builders/Mac10.9%20Tests/builds/41470 https://build.chromium.org/p/chromium.mac/builders/Mac10.10%20Tests/builds/18212 https://build.chromium.org/p/chromium.mac/builders/Mac10.12%20Tests/builds/730
The CQ bit was checked by tapted@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from asvitkine@chromium.org Link to the patchset: https://codereview.chromium.org/2869803005/#ps280001 (title: "self review - tested normal twice")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 280001, "attempt_start_ts": 1495416175133230, "parent_rev": "c3636c2887c896911de99d208889b2582cf5e56b", "commit_rev": "124eb0b5af215ce2df373be6552228d79090256e"}
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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/+/124eb0b5af215ce2df373be65522... ==========
Message was sent while issue was closed.
Committed patchset #8 (id:280001) as https://chromium.googlesource.com/chromium/src/+/124eb0b5af215ce2df373be65522... |