summaryrefslogtreecommitdiffstats
path: root/base/mac/foundation_util.h
diff options
context:
space:
mode:
authortapted <tapted@chromium.org>2015-03-04 16:42:04 -0800
committerCommit bot <commit-bot@chromium.org>2015-03-05 00:43:00 +0000
commit2daf5448d99882ffc6957c773a83a2e7efdb73e2 (patch)
tree64fdfa1b5af744409eb9a62764c78f2597dfa510 /base/mac/foundation_util.h
parent4449d976059b4d76ca1671560042f291f9a6083d (diff)
downloadchromium_src-2daf5448d99882ffc6957c773a83a2e7efdb73e2.zip
chromium_src-2daf5448d99882ffc6957c773a83a2e7efdb73e2.tar.gz
chromium_src-2daf5448d99882ffc6957c773a83a2e7efdb73e2.tar.bz2
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}
Diffstat (limited to 'base/mac/foundation_util.h')
-rw-r--r--base/mac/foundation_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/mac/foundation_util.h b/base/mac/foundation_util.h
index accc0d9..353ed7c 100644
--- a/base/mac/foundation_util.h
+++ b/base/mac/foundation_util.h
@@ -296,6 +296,7 @@ CF_CAST_DECL(CFUUID);
CF_CAST_DECL(CGColor);
CF_CAST_DECL(CTFont);
+CF_CAST_DECL(CTFontDescriptor);
CF_CAST_DECL(CTRun);
CF_CAST_DECL(SecACL);