adjust font size to make text fit within constrained size

# Conflicts:
#	AsyncDisplayKit/ASTextNode.mm
This commit is contained in:
rcancro
2016-02-12 11:11:06 -08:00
parent a4789f3524
commit a920e353c6
8 changed files with 284 additions and 129 deletions

View File

@@ -10,9 +10,9 @@
@interface ASTextNode ()
/**
@abstract The minimum scale that the textnode can apply to fit long words.
@default 0 (No scaling)
@abstract An array of descending scale factors that will be applied to this text node to try to make it fit within its constrained size
@default nil (no scaling)
*/
@property (nonatomic, assign) CGFloat minimumScaleFactor;
@property (nonatomic, copy) NSArray *pointSizeScaleFactors;
@end