Re: CoreText & NSMutableParagraphStyle maximumLineHeight
Re: CoreText & NSMutableParagraphStyle maximumLineHeight
- Subject: Re: CoreText & NSMutableParagraphStyle maximumLineHeight
- From: Graham Cox <email@hidden>
- Date: Tue, 20 Aug 2013 07:50:31 +0200
On 20/08/2013, at 6:08 AM, Peter C <email@hidden> wrote:
> A user complain my App paragraph text lines space is too much, this is because it is done by using NSString drawInRect:withAttributes:, not much of any adjustment.
That's not the case. The -attributes: parameter is a dictionary of any attributes, including NSParagraphStyle, and that can have whatever line spacing you want. You can drop down to Core Text, but it's not necessary just to allow adjustment of line spacing.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden