Skip to content

CoreText macOS xcode16.0 b5

Rolf Bjarne Kvinge edited this page Aug 12, 2024 · 3 revisions

#CoreText.framework https://github.com/xamarin/xamarin-macios/pull/20878

diff -ruN /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h
--- /Applications/Xcode_16.0.0-beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h	2024-07-02 00:18:59
+++ /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h	2024-07-27 14:42:09
@@ -1548,6 +1548,22 @@
     CTFontTableOptions  options ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
 
 /*!
+    @function   CTFontHasTable
+    @abstract   Determine whether a table is present in a font.
+    @discussion This is a convenience function to avoid requesting an array of table tags or any table data. It behaves according as if using `kCTFontTableOptionNoOptions`.
+
+    @param      font
+                The font reference.
+
+    @param      table
+                The font table identifier as a CTFontTableTag.
+
+    @result     Returns true if the call was successful and the requested table is present.
+*/
+CT_EXPORT
+bool CTFontHasTable(CTFontRef font, CTFontTableTag tag) CT_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
+
+/*!
     @function   CTFontCopyTable
     @abstract   Returns a reference to the font table data.
 
Clone this wiki locally