• 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: Font metrics
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font metrics


  • Subject: Re: Font metrics
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 8 Dec 2005 09:34:56 -0800


On Dec 8, 2005, at 9:26 AM, Aki Inoue wrote:

NSTextContainer adds padding at both ends of the line fragment.
By default, it's set to 5.0.

See -[NSTextContainer lineFragmentPadding].


Let me just add that this default is intended for use in the standard NSTextView setup as you would get from e.g. dragging a text view in with InterfaceBuilder. For string drawing and measuring purposes, you will probably want to set the line fragment padding to zero, and in fact the methods in NSStringDrawing.h use zero for line fragment padding.

Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Font metrics (From: "Frode" <email@hidden>)
 >Re: Font metrics (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: Font metrics
  • Next by Date: What is the rationale behind keeping preferences in one place and "Application Support" files in another?
  • Previous by thread: Re: Font metrics
  • Next by thread: database example
  • Index(es):
    • Date
    • Thread