Re: Choose an NSFont with specific line height?
Re: Choose an NSFont with specific line height?
- Subject: Re: Choose an NSFont with specific line height?
- From: Douglas Davidson <email@hidden>
- Date: Tue, 18 Apr 2006 08:38:28 -0700
On Apr 17, 2006, at 7:51 PM, Dustin Voss wrote:
So, if I understand the both of you correctly, the solution is take
the font at 72 point, see how off the size is, then reduce the font
size proportionately. So, for example, the cell's line height is 10
pixels, the 72-point line height is 82 pixels, therefore the pixels-
per-point is 82/72, and the point size that results in a 10-pixels
line height is 10*72/82. Right?
That should get you pretty close, although it's not guaranteed to be
exact in all cases. You may need to repeat the process, for example
if you get something a little too large, until the result is close
enough for your purposes.
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