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

Unified Diff: include/ports/SkTypeface_mac.h

Issue 872963003: Expose method to retrieve CTFont (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Legacy cases updated Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/ports/SkTypeface_mac.h
diff --git a/include/ports/SkTypeface_mac.h b/include/ports/SkTypeface_mac.h
index 0166ee57eaca38a425f5b8e97374017c326c1811..a59f8f77735e4abe58e8c2a5b23ebb4c4190c286 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.
reed1 2015/02/11 13:45:13 Thanks.
+ *
+ * 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698