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

Issue 971673002: Mac: Implement GetFallbackFontFamilies for Harfbuzz (Closed)

Created:
5 years, 9 months ago by tapted
Modified:
5 years, 9 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, mac-views-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@20150129-MacViews-Bringup5-RTHB-in-Label
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Implement GetFallbackFontFamilies for Harfbuzz From 10.8 onwards, CoreText provides CTFontCopyDefaultCascadeListForLanguages() which is exactly what we want. For 10.6 and 10.7, use an older private interface, CTFontCopyDefaultCascadeList(). Adds tests to ensure the feature detection and API behavior is sane across all OSX versions we support. BUG=439039, 462477 NOPRESUBMIT=true Committed: https://crrev.com/2daf5448d99882ffc6957c773a83a2e7efdb73e2 Cr-Commit-Position: refs/heads/master@{#319176}

Patch Set 1 : Failed attempt with NSFont APIs #

Patch Set 2 : Another dead end #

Patch Set 3 : It works \o/. Now with a test #

Patch Set 4 : Kill CoreText stderr spam, add a targeted test #

Patch Set 5 : Feature Detection #

Total comments: 10

Patch Set 6 : Alexei comments #

Total comments: 2

Patch Set 7 : Move to font_fallback_mac_unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -23 lines) Patch
M base/mac/foundation_util.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M base/mac/foundation_util.mm View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M ui/gfx/font_fallback.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
D ui/gfx/font_fallback_mac.cc View 1 chunk +0 lines, -20 lines 0 comments Download
A ui/gfx/font_fallback_mac.mm View 1 2 3 4 5 1 chunk +102 lines, -0 lines 0 comments Download
A ui/gfx/font_fallback_mac_unittest.cc View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/gfx_tests.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
tapted
Hi Alexei and Nico - please take a look. Nico for foundation_util owners and for ...
5 years, 9 months ago (2015-03-03 07:23:18 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/971673002/diff/120001/ui/gfx/font_fallback_mac.mm File ui/gfx/font_fallback_mac.mm (right): https://codereview.chromium.org/971673002/diff/120001/ui/gfx/font_fallback_mac.mm#newcode1 ui/gfx/font_fallback_mac.mm:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 9 months ago (2015-03-03 23:12:33 UTC) #7
tapted
https://codereview.chromium.org/971673002/diff/120001/ui/gfx/font_fallback_mac.mm File ui/gfx/font_fallback_mac.mm (right): https://codereview.chromium.org/971673002/diff/120001/ui/gfx/font_fallback_mac.mm#newcode1 ui/gfx/font_fallback_mac.mm:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 9 months ago (2015-03-03 23:41:14 UTC) #8
Alexei Svitkine (slow)
lgtm % comment https://codereview.chromium.org/971673002/diff/140001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/971673002/diff/140001/ui/gfx/render_text_unittest.cc#newcode2596 ui/gfx/render_text_unittest.cc:2596: std::vector<std::string> fallback_families = GetFallbackFontFamilies("Arial"); Sounds like ...
5 years, 9 months ago (2015-03-04 16:23:02 UTC) #9
Nico
lgtm asvitkine's comment on the test makes sense to me
5 years, 9 months ago (2015-03-04 18:06:10 UTC) #10
tapted
Thanks all! https://codereview.chromium.org/971673002/diff/140001/ui/gfx/render_text_unittest.cc File ui/gfx/render_text_unittest.cc (right): https://codereview.chromium.org/971673002/diff/140001/ui/gfx/render_text_unittest.cc#newcode2596 ui/gfx/render_text_unittest.cc:2596: std::vector<std::string> fallback_families = GetFallbackFontFamilies("Arial"); On 2015/03/04 16:23:02, ...
5 years, 9 months ago (2015-03-04 23:44:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971673002/160001
5 years, 9 months ago (2015-03-04 23:47:40 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/47399)
5 years, 9 months ago (2015-03-05 00:09:28 UTC) #16
tapted
On 2015/03/05 00:09:28, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 9 months ago (2015-03-05 00:18:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971673002/160001
5 years, 9 months ago (2015-03-05 00:20:12 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 9 months ago (2015-03-05 00:42:22 UTC) #20
commit-bot: I haz the power
5 years, 9 months ago (2015-03-05 00:43:13 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2daf5448d99882ffc6957c773a83a2e7efdb73e2
Cr-Commit-Position: refs/heads/master@{#319176}

Powered by Google App Engine
This is Rietveld 408576698