• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Line spacing in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Line spacing in NSTextView (From: Slava Pestov <email@hidden>)
 >Re: Line spacing in NSTextView (From: Graham Cox <email@hidden>)
 >Re: Line spacing in NSTextView (From: Slava Pestov <email@hidden>)
 >Re: Line spacing in NSTextView (From: Aki Inoue <email@hidden>)
 >Re: Line spacing in NSTextView (From: Slava Pestov <email@hidden>)
 >Re: Line spacing in NSTextView (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: Line spacing in NSTextView
  • Next by Date: Drawing Efficiency
  • Previous by thread: Re: Line spacing in NSTextView
  • Next by thread: iTableView and subclassing NSTableView
  • Index(es):
    • Date
    • Thread