Draws the receiver with the specified options, within the given rectangle in the current graphics context.
- macOS 10.4–10.11Deprecated
The rectangle specifies the rendering origin in the current graphics context.
The string drawing options. See
NSStringfor the available options.
rect argument's origin field specifies the rendering origin. The point is interpreted as the baseline origin by default. With
NSString, it is interpreted as the upper left corner of the line fragment rect. The size field specifies the text container size. The width part of the size field specifies the maximum line fragment width if larger than
0. The height defines the maximum size that can be occupied with text if larger than
NSString is specified. If
NSString is not specified, height is ignored and considered to be single-line rendering (
NSLine are treated as
You should only invoke this method when there is a current graphics context.