Re: Line spacing in NSTextView
Re: Line spacing in NSTextView
- Subject: Re: Line spacing in NSTextView
- From: Slava Pestov <email@hidden>
- Date: Sun, 15 Feb 2009 01:43:24 -0600
On Sun, Feb 15, 2009 at 12:26 AM, Aki Inoue <email@hidden> wrote:
> The most simple logic for getting the default line height can be accessible
> via -[NSLayoutManager defaultLineHeightForFont:].
> AppKit puts descent + leading below the baseline, so you should be able to
> calculate the line spacing delta on top of ascent.
Thanks, this looks like exactly what I need. And CTFont is
toll-free-bridged with NSFont! Nice.
> Ah, the documentation didn't get updated to reflect the reality.
> Despite of the naming, it's been using CoreText since Tiger.
Good to know. I definitely plan on looking using higher-level
typesetting APIs in the near future.
Slava
_______________________________________________
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