Re: Font metrics
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