ctFont
TypeScriptget ctFont(): _CoreText_CTFontSwift declarationvar ctFont: CTFont { get }Returns the CTFont opaque type that represents a CoreText font object.
struct · iOS 26.0+ · SDK 27.1
struct ResolvedA concrete font value. `Font.Resolved` is a concrete representation of a Font that can be shown, with a specific set of `EnvironmentValues`. A `Resolved` font will always map to the same CTFont on a given platform. - SeeAlso: ``Font``.
get ctFont(): _CoreText_CTFontSwift declarationvar ctFont: CTFont { get }Returns the CTFont opaque type that represents a CoreText font object.
get isSmallCaps(): booleanSwift declarationvar isSmallCaps: Bool { get }Returns `true` if all of the resolved font's characters use small caps.
get isMonospaced(): booleanSwift declarationvar isMonospaced: Bool { get }Returns `true` if a resolved font is monospaced, false otherwise.
get isLowercaseSmallCaps(): booleanSwift declarationvar isLowercaseSmallCaps: Bool { get }Returns `true` if the resolved font's lowercased characters use small caps.
get isUppercaseSmallCaps(): booleanSwift declarationvar isUppercaseSmallCaps: Bool { get }Returns `true` if the resolved font's uppercased characters use small caps.
get width(): Font_WidthSwift declarationvar width: Font.Width { get }The width of a resolved font.
get isBold(): booleanSwift declarationvar isBold: Bool { get }Returns `true` if the resolved font has a bold trait according to CoreText or the font's weight is semi-bold or greater.
get weight(): Font_WeightSwift declarationvar weight: Font.Weight { get }The weight of a resolved font.
get leading(): Font_LeadingSwift declarationvar leading: Font.Leading { get }The leading of a resolved font.
get isItalic(): booleanSwift declarationvar isItalic: Bool { get }Returns `true` if the resolved font is italic.
get pointSize(): numberSwift declarationvar pointSize: CGFloat { get }The point size of a resolved font.
No declarations were skipped in this snapshot.