Mac: Implement GetFallbackFontFamilies for Harfbuzz
commit2daf5448d99882ffc6957c773a83a2e7efdb73e2
authortapted <tapted@chromium.org>
Thu, 5 Mar 2015 00:42:04 +0000 (4 16:42 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 5 Mar 2015 00:43:00 +0000 (5 00:43 +0000)
tree64fdfa1b5af744409eb9a62764c78f2597dfa510
parent4449d976059b4d76ca1671560042f291f9a6083d
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

Review URL: https://codereview.chromium.org/971673002

Cr-Commit-Position: refs/heads/master@{#319176}
base/mac/foundation_util.h
base/mac/foundation_util.mm
ui/gfx/BUILD.gn
ui/gfx/font_fallback.h
ui/gfx/font_fallback_mac.cc [deleted file]
ui/gfx/font_fallback_mac.mm [new file with mode: 0644]
ui/gfx/font_fallback_mac_unittest.cc [new file with mode: 0644]
ui/gfx/gfx.gyp
ui/gfx/gfx_tests.gyp
ui/gfx/render_text_harfbuzz.h
ui/gfx/render_text_unittest.cc