Skip to content

CoreText iOS xcode26.4 b3

Alex Soto edited this page Mar 11, 2026 · 1 revision

#CoreText.framework

diff -ruN /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h /Applications/Xcode_26.4.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h
--- /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h	2026-02-16 00:43:16
+++ /Applications/Xcode_26.4.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h	2026-03-02 23:53:20
@@ -294,7 +294,7 @@
 /*!
     @enum       UI Type constants
     @abstract   These constants represent the specific user interface purpose to specify for font creation.
-    @discussion Use these constants with CTFontCreateUIFontForLanguage to indicate the intended user interface usage of the font reference to be created.
+    @discussion Use these constants with CTFontCreateUIFontForLanguage to indicate the intended user interface usage of the font reference to be created. The system may internally remap the value, so the value returned by CTFontGetUIFontType may return a different value than the one originally passed to CTFontCreateUIFontForLanguage. This remapping may vary by platform and OS version.
 */
 typedef CF_ENUM(uint32_t, CTFontUIFontType) {
     kCTFontUIFontNone                   = (uint32_t)-1,
@@ -404,6 +404,13 @@
     CTFontUIFontType    uiType,
     CGFloat             size,
     CFStringRef _Nullable language ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0));
+
+/*!
+    @function   CTFontGetUIFontType
+    @discussion Get the CTFontUIFontType of UI font. Note that this value may differ from the uiType parameter originally passed to CTFontCreateUIFontForLanguage, as the system may use a different uiType value internally.
+ */
+CT_EXPORT
+CTFontUIFontType CTFontGetUIFontType(CTFontRef font) CT_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
 
 #ifdef __swift__
 
diff -ruN /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h /Applications/Xcode_26.4.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h
--- /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h	2026-02-16 02:11:35
+++ /Applications/Xcode_26.4.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h	2026-03-03 00:48:45
@@ -294,6 +294,13 @@
 */
 CT_EXPORT const CFStringRef kCTFontOpticalSizeAttribute CT_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
 
+/*!
+    @defined    kCTFontDescriptorLanguageAttribute
+    @abstract   The language identifier for font fallback selection.
+    @discussion The value associated with this key is a CFStringRef. If specified in a font descriptor, it is used to select the appropriate font fallback list for the language. This key should not be confused with kCTLanguageAttributeName, which is defined in CTStringAttributes.h.
+ */
+CT_EXPORT const CFStringRef kCTFontDescriptorLanguageAttribute CT_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
+
 /*! --------------------------------------------------------------------------
     @group Descriptor Creation
 *///--------------------------------------------------------------------------

Clone this wiki locally