diff options
author | 2015-02-18 10:50:58 -0800 | |
---|---|---|
committer | 2015-02-18 10:50:58 -0800 | |
commit | 94886482ffe10e17c62cfd274de1c4f4a7393384 (patch) | |
tree | eae81f0303438711203effa060907fb7c62c0af6 /include/ports/SkTypeface_mac.h | |
parent | cd6ca9e689610d9fad2ef2b9c840dcdccc649471 (diff) |
Expose method to retrieve CTFont
BUG=skia:3351
R=bungeman@chromium.org
Review URL: https://codereview.chromium.org/872963003
Diffstat (limited to 'include/ports/SkTypeface_mac.h')
-rw-r--r-- | include/ports/SkTypeface_mac.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/ports/SkTypeface_mac.h b/include/ports/SkTypeface_mac.h index 0166ee57ea..a59f8f7773 100644 --- a/include/ports/SkTypeface_mac.h +++ b/include/ports/SkTypeface_mac.h @@ -25,5 +25,15 @@ * unref() when it is finished. */ SK_API extern SkTypeface* SkCreateTypefaceFromCTFont(CTFontRef); - +/** + * Returns the platform-specific CTFontRef handle for a + * given SkTypeface. Note that the returned CTFontRef gets + * released when the source SkTypeface is destroyed. + * + * This method is deprecated. It may only be used by Blink Mac + * legacy code in special cases related to text-shaping + * with AAT fonts, clipboard handling and font fallback. + * See https://code.google.com/p/skia/issues/detail?id=3408 + */ +SK_API extern CTFontRef SkTypeface_GetCTFontRef(const SkTypeface* face); #endif |