Immutable wrapper for various text style properties.
Definition: CPTTextStyle.h:18
void sizeToFit()
Resizes the layer to fit its contents leaving a narrow margin on all four sides.
Definition: CPTTextLayer.m:340
CGSize sizeThatFits()
Determine the minimum size needed to fit the text.
Definition: CPTTextLayer.m:312
CGSize maximumSize
The maximum size of the layer. The default is {0.0, 0.0}.
Definition: CPTTextLayer.h:13
CPTTextStyle * textStyle
The text style used to draw the text.
Definition: CPTTextLayer.h:11
A Core Animation layer that displays text drawn in a uniform style.
Definition: CPTTextLayer.h:9
const CGFloat kCPTTextLayerMarginWidth
Margin width around the text.
Definition: CPTTextLayer.m:9
NSString * text
The text to display.
Definition: CPTTextLayer.h:10
NSAttributedString * attributedText
The styled text to display.
Definition: CPTTextLayer.h:12