Line spacing in NSTextView
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