iOS7 and later, we can use - (void)drawWithRect:(CGRect)rect options:(NSStringDrawingOptions)options attributes:(NSDictionary *)attributes context:(NSStringDrawingContext *)context
to calculate the string size, but I'm confused with the comments on NSStringDrawingOptions
enum.
NSStringDrawingUsesLineFragmentOrigin
It means specified origin is the line fragment origin, not the base line origin. But what mean of line fragment origin and baseline origin.
Just like the WWDC 2013 Session 220 (Advanced Text Layouts and Effects with Text Kit) PDF on Page 95.
If line fragment origin mean the blue dot, what the baseline origin?
From the official documentation