Instance Property

boundingRectForFont

The font’s bounding rectangle, scaled to the font’s size.

Declaration

var boundingRectForFont: NSRect { get }

Discussion

The bounding rectangle is the union of the bounding rectangles of every glyph in the font.

See Also

Getting Bounding Rectangles

func boundingRect(forCGGlyph: CGGlyph) -> NSRect

Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size.

func getBoundingRects(NSRectArray, forCGGlyphs: UnsafePointer<CGGlyph>, count: Int)

Returns an array of the bounding rectangles for the specified glyphs rendered by the receiver.