Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
NSString(CPTTextStyleExtensions) Category Reference

NSString extensions for drawing styled text. More...

#import <CPTTextStyle.h>

Public Instance Methods

Measurement
(CGSize- sizeWithTextStyle:
 Determines the size of text drawn with the given style. More...
 
Drawing
(void) - drawInRect:withTextStyle:inContext:
 Draws the text into the given graphics context using the given style. More...
 

Detailed Description

NSString extensions for drawing styled text.

Method Documentation

◆ drawInRect:withTextStyle:inContext:

- (void) drawInRect: (CGRect rect
withTextStyle: (nullable CPTTextStyle *)  style
inContext: (nonnull CGContextRef context 

Draws the text into the given graphics context using the given style.

Parameters
rectThe bounding rectangle in which to draw the text.
styleThe text style.
contextThe graphics context to draw into.

◆ sizeWithTextStyle:

- (CGSize) sizeWithTextStyle: (nullable CPTTextStyle *)  style

Determines the size of text drawn with the given style.

Parameters
styleThe text style.
Returns
The size of the text when drawn with the given style.

The documentation for this category was generated from the following files: