notShownAttribute(forGlyphAt:)
Indicates whether the glyph at the specified index has a visible representation.
Declaration
func notShownAttribute(forGlyphAt glyphIndex: Int) -> BoolParameters
- glyphIndex:
Index of the glyph.
Return Value
true if the glyph at glyphIndex is not shown; otherwise false.
Discussion
Some glyphs are not shown. For example, a tab, newline, or attachment glyph is not shown; it just affects the layout of following glyphs or locates the attachment graphic. Space characters, however, typically are shown as glyphs with a displacement, although they leave no visible marks.
This method causes glyph generation and layout for the line fragment containing the specified glyph, or if noncontiguous layout is not enabled, up to and including that line fragment.
Raises an NSRangeException if glyphIndex is out of bounds.
See Also
Getting layout information
attachmentSize(forGlyphAt:)drawsOutsideLineFragment(forGlyphAt:)extraLineFragmentRectextraLineFragmentTextContainerextraLineFragmentUsedRectfirstUnlaidCharacterIndex()firstUnlaidGlyphIndex()getFirstUnlaidCharacterIndex(_:glyphIndex:)lineFragmentRect(forGlyphAt:effectiveRange:)lineFragmentRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)lineFragmentUsedRect(forGlyphAt:effectiveRange:)lineFragmentUsedRect(forGlyphAt:effectiveRange:withoutAdditionalLayout:)location(forGlyphAt:)truncatedGlyphRange(inLineFragmentForGlyphAt:)