setBidiLevels(_:forGlyphRange:)
Sets the direction of the specified glyphs for bidirectional text.
Declaration
func setBidiLevels(_ levels: UnsafePointer<UInt8>!, forGlyphRange glyphRange: NSRange)Parameters
- levels:
Values in
levelscan range from 0 to 61 as defined by Unicode Standard Annex #9. - glyphRange:
The range of glyphs for which the bidirectional text levels are desired.
Discussion
A subclass can override this method to interact with custom glyph storage.
See Also
Interfacing with Glyph Storage
characterRange(forGlyphRange:actualGlyphRange:)glyphRange(forCharacterRange:actualCharacterRange:)setAttachmentSize(_:forGlyphRange:)setDrawsOutsideLineFragment(_:forGlyphRange:)setLineFragmentRect(_:forGlyphRange:usedRect:baselineOffset:)setLocation(_:withAdvancements:forStartOfGlyphRange:)setNotShownAttribute(_:forGlyphRange:)