Indicates whether the glyph draws outside of its line fragment rectangle.
SDKs
- iOS 7.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Frameworks
- UIKit
- App
Kit
Declaration
Parameters
glyphIndex
Index of the glyph.
Return Value
true
if the glyph at glyph
exceeds the bounds of the line fragment where it’s laid out, false
otherwise.
Discussion
Exceeding bounds can happen when text is set at a fixed line height. For example, if the user specifies a fixed line height of 12 points and sets the font size to 24 points, the glyphs will exceed their layout rectangles.
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.
Glyphs that draw outside their line fragment rectangles aren’t considered when calculating enclosing rectangles with the rect
and rect
methods. They are, however, considered by bounding
.