The number of glyphs in the receiver.
SDKs
- iOS 7.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Frameworks
- UIKit
- App
Kit
Declaration
var numberOfGlyphs: Int { get }
The number of glyphs in the receiver.
SDKs
Frameworks
var numberOfGlyphs: Int { get }
func cg Glyph(at: Int) -> CGGlyph
Returns the glyph at the specified index.
func cg Glyph(at: Int, is Valid Index: Unsafe Mutable Pointer<Obj CBool>?) -> CGGlyph
Returns the glyph at the specified index and information about whether the glyph index is valid.
func set Glyphs(Unsafe Pointer<CGGlyph>, properties: Unsafe Pointer<NSLayout Manager .Glyph Property>, character Indexes: Unsafe Pointer<Int>, font: UIFont, for Glyph Range: NSRange)
Stores the initial glyphs and glyph properties for a character range.
func character Index For Glyph(at: Int) -> Int
Returns the index in the text storage for the first character associated with the given glyph.
func glyph Index For Character(at: Int) -> Int
Returns the index of the first glyph associated with the character at the specified index.
func is Valid Glyph Index(Int) -> Bool
Indicates whether the specified index refers to a valid glyph, otherwise false
.
func property For Glyph(at: Int) -> NSLayout Manager .Glyph Property
Returns the glyph property associated with the glyph at the specified index.