• 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: NSTextField ~10% > NSTextView for same font
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line Spacing: NSTextField ~10% > NSTextView for same font


  • Subject: Re: Line Spacing: NSTextField ~10% > NSTextView for same font
  • From: Joshua Scott Emmons <email@hidden>
  • Date: Mon, 18 Feb 2008 11:36:29 -0600

Does anyone know why a wrapped NSTextField has a slightly larger line spacing than NSTextView with the same font?
What is a good way to predict the required string height for text which will be drawn in a wrapped NSTextField?

Could it have something to do with typesetter behaviors? http://lists.apple.com/archives/cocoa-dev/2006/Jan/msg00109.html

It could be that the pre-packaged NSLayoutManager that comes with an NSTextView has a different typesetter behavior than one that you freshly alloc for use with your NSTextField?


Just a guess, -Joshua Emmons _______________________________________________

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: NSTextField ~10% > NSTextView for same font (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Line Spacing: NSTextField ~10% > NSTextView for same font
  • Next by Date: Re: A couple questions relevant to games
  • Previous by thread: Re: Line Spacing: NSTextField ~10% > NSTextView for same font
  • Next by thread: Height and location of text within a line in NSLayoutManager ignoring spacing?
  • Index(es):
    • Date
    • Thread