fixFontAttribute(in:)
Fixes the font attribute in the specified range and assigns default fonts where appropriate.
Declaration
func fixFontAttribute(in range: NSRange)Parameters
- range:
The range of characters.
Discussion
This method assigns default fonts to characters with illegal fonts for their scripts and corrects other font attribute assignments. For example, Kanji characters assigned a Latin font are reassigned an appropriate Kanji font. Raises an rangeException if any part of range lies beyond the end of the receiver’s characters.