• 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
Line spacing in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Line spacing in NSTextView


  • Subject: Line spacing in NSTextView
  • From: Slava Pestov <email@hidden>
  • Date: Fri, 13 Feb 2009 20:15:59 -0600

Hi all,

Can someone enlighten me, how does NSTextView compute line spacing?

When I display a piece of text in stickies, with Helvetica 12 (or any
other font, really), and the same piece of text in my application,
stickies adds another 2 pixels of spacing between every line, and the
result looks more legible. Otherwise the font rendering is identical.
I'm using Core Text to render each line individually, and I presume
Stickies is using an NSTextView. I'm computing line height by adding
the ascent, descent and leading, but for Helvetica 12 at least the
leading is zero.

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

  • Follow-Ups:
    • Re: Line spacing in NSTextView
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
  • Next by Date: Re: Programatically Uncheck "Change Picture" In Desktop Settings?
  • Previous by thread: Re: How to handle clicks on NSOutlineView
  • Next by thread: Re: Line spacing in NSTextView
  • Index(es):
    • Date
    • Thread