On Sun, Feb 15, 2009 at 12:26 AM, Aki Inoue <[email protected]> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
