CoreText watchOS 3.2 to 4.0 API Differences

CoreText.h
CTDefines.h
Removed #def CT_AVAILABLE_MAC
Removed #def CT_AVAILABLE_IOS
Removed #def CT_DEPRECATED_MAC
Removed #def CT_DEPRECATED_IOS
Removed #def CT_ENUM_AVAILABLE
Removed #def CT_ENUM_AVAILABLE_MAC
Removed #def CT_ENUM_AVAILABLE_IOS
Removed #def CT_ENUM_DEPRECATED_MAC
Removed #def CT_ENUM_DEPRECATED_IOS
Added #def CT_UNAVAILABLE
Added #def CT_ENUM_UNAVAILABLE
CTFont.h
Declaration
FromCTFontRef _Nonnull CTFontCreateWithName(CFStringRef _Nullable name, CGFloat size, const CGAffineTransform * _Nullable matrix)
ToCTFontRef _Nonnull CTFontCreateWithName(CFStringRef _Nonnull name, CGFloat size, const CGAffineTransform * _Nullable matrix)

Declaration
From_Bool CTFontGetGlyphsForCharacters(CTFontRef _Nonnull font, const UniChar [] characters, CGGlyph [] glyphs, CFIndex count)
To_Bool CTFontGetGlyphsForCharacters(CTFontRef _Nonnull font, const UniChar _Nonnull[] characters, CGGlyph _Nonnull[] glyphs, CFIndex count)

Declaration
FromCGRect CTFontGetBoundingRectsForGlyphs(CTFontRef _Nonnull font, CTFontOrientation orientation, const CGGlyph [] glyphs, CGRect * _Nullable boundingRects, CFIndex count)
ToCGRect CTFontGetBoundingRectsForGlyphs(CTFontRef _Nonnull font, CTFontOrientation orientation, const CGGlyph _Nonnull[] glyphs, CGRect * _Nullable boundingRects, CFIndex count)

Declaration
FromCGRect CTFontGetOpticalBoundsForGlyphs(CTFontRef _Nonnull font, const CGGlyph [] glyphs, CGRect * _Nullable boundingRects, CFIndex count, CFOptionFlags options)
ToCGRect CTFontGetOpticalBoundsForGlyphs(CTFontRef _Nonnull font, const CGGlyph _Nonnull[] glyphs, CGRect * _Nullable boundingRects, CFIndex count, CFOptionFlags options)

Declaration
Fromdouble CTFontGetAdvancesForGlyphs(CTFontRef _Nonnull font, CTFontOrientation orientation, const CGGlyph [] glyphs, CGSize * _Nullable advances, CFIndex count)
Todouble CTFontGetAdvancesForGlyphs(CTFontRef _Nonnull font, CTFontOrientation orientation, const CGGlyph _Nonnull[] glyphs, CGSize * _Nullable advances, CFIndex count)

Declaration
Fromvoid CTFontGetVerticalTranslationsForGlyphs(CTFontRef _Nonnull font, const CGGlyph [] glyphs, CGSize [] translations, CFIndex count)
Tovoid CTFontGetVerticalTranslationsForGlyphs(CTFontRef _Nonnull font, const CGGlyph _Nonnull[] glyphs, CGSize _Nonnull[] translations, CFIndex count)

Declaration
Fromvoid CTFontDrawGlyphs(CTFontRef _Nonnull font, const CGGlyph [] glyphs, const CGPoint [] positions, size_t count, CGContextRef _Nonnull context)
Tovoid CTFontDrawGlyphs(CTFontRef _Nonnull font, const CGGlyph _Nonnull[] glyphs, const CGPoint _Nonnull[] positions, size_t count, CGContextRef _Nonnull context)

CTFontCollection.h
CTFontDescriptor.h
CTFontManager.h
CTFrame.h
Declaration
Fromvoid CTFrameGetLineOrigins(CTFrameRef _Nonnull frame, CFRange range, CGPoint [] origins)
Tovoid CTFrameGetLineOrigins(CTFrameRef _Nonnull frame, CFRange range, CGPoint _Nonnull[] origins)

CTGlyphInfo.h
CTParagraphStyle.h
CTRubyAnnotation.h
Declaration
FromCTRubyAnnotationRef _Nonnull CTRubyAnnotationCreate(CTRubyAlignment alignment, CTRubyOverhang overhang, CGFloat sizeFactor, CFStringRef _Nonnull [4] text)
ToCTRubyAnnotationRef _Nonnull CTRubyAnnotationCreate(CTRubyAlignment alignment, CTRubyOverhang overhang, CGFloat sizeFactor, CFStringRef _Nullable _Nonnull[4] text)

CTRun.h
Declaration
Fromvoid CTRunGetGlyphs(CTRunRef _Nonnull run, CFRange range, CGGlyph [] buffer)
Tovoid CTRunGetGlyphs(CTRunRef _Nonnull run, CFRange range, CGGlyph _Nonnull[] buffer)

Declaration
Fromvoid CTRunGetPositions(CTRunRef _Nonnull run, CFRange range, CGPoint [] buffer)
Tovoid CTRunGetPositions(CTRunRef _Nonnull run, CFRange range, CGPoint _Nonnull[] buffer)

Declaration
Fromvoid CTRunGetAdvances(CTRunRef _Nonnull run, CFRange range, CGSize [] buffer)
Tovoid CTRunGetAdvances(CTRunRef _Nonnull run, CFRange range, CGSize _Nonnull[] buffer)

Declaration
Fromvoid CTRunGetStringIndices(CTRunRef _Nonnull run, CFRange range, CFIndex [] buffer)
Tovoid CTRunGetStringIndices(CTRunRef _Nonnull run, CFRange range, CFIndex _Nonnull[] buffer)

CTStringAttributes.h
CTTypesetter.h