CTFont
A font object.
Declaration
class CTFontOverview
The CTFont opaque type represents a Core Text font object.
Font objects represent fonts to an application, providing access to characteristics of the font, such as point size, transform matrix, and other attributes. Fonts provide assistance in laying out glyphs relative to one another and are used to establish the current font when drawing in a graphics context.
Topics
Creating Fonts
CTFontCreateWithName(_:_:_:)CTFontCreateWithNameAndOptions(_:_:_:_:)CTFontCreateWithFontDescriptor(_:_:_:)CTFontCreateWithFontDescriptorAndOptions(_:_:_:_:)CTFontCreateUIFontForLanguage(_:_:_:)CTFontCreateCopyWithAttributes(_:_:_:_:)CTFontCreateCopyWithSymbolicTraits(_:_:_:_:_:)CTFontCreateCopyWithFamily(_:_:_:_:)CTFontCreateForString(_:_:_:)CTFontCreateForStringWithLanguage(_:_:_:_:)
Getting Font Data
CTFontCopyFontDescriptor(_:)CTFontCopyAttribute(_:_:)CTFontGetSize(_:)CTFontGetMatrix(_:)CTFontGetSymbolicTraits(_:)CTFontCopyTraits(_:)CTFontCopyDefaultCascadeListForLanguages(_:_:)
Getting Font Names
CTFontCopyPostScriptName(_:)CTFontCopyFamilyName(_:)CTFontCopyFullName(_:)CTFontCopyDisplayName(_:)CTFontCopyName(_:_:)CTFontCopyLocalizedName(_:_:_:)
Working With Encoding
Getting Font Metrics
CTFontGetAscent(_:)CTFontGetDescent(_:)CTFontGetLeading(_:)CTFontGetUnitsPerEm(_:)CTFontGetGlyphCount(_:)CTFontGetBoundingBox(_:)CTFontGetUnderlinePosition(_:)CTFontGetUnderlineThickness(_:)CTFontGetSlantAngle(_:)CTFontGetCapHeight(_:)CTFontGetXHeight(_:)
Getting Glyph Data
CTFontCreatePathForGlyph(_:_:_:)CTFontGetGlyphWithName(_:_:)CTFontGetBoundingRectsForGlyphs(_:_:_:_:_:)CTFontGetAdvancesForGlyphs(_:_:_:_:_:)CTFontGetOpticalBoundsForGlyphs(_:_:_:_:_:)CTFontGetVerticalTranslationsForGlyphs(_:_:_:_:)
Working With Font Variations
Getting Font Features
Working with Glyphs
CTFontGetGlyphsForCharacters(_:_:_:_:)CTFontDrawGlyphs(_:_:_:_:_:)CTFontGetLigatureCaretPositions(_:_:_:_:)
Converting Fonts
CTFontCopyGraphicsFont(_:_:)CTFontCreateWithGraphicsFont(_:_:_:_:)CTFontGetPlatformFont(_:_:)CTFontCreateWithPlatformFont(_:_:_:_:)CTFontCreateWithQuickdrawInstance(_:_:_:_:)