Re: [NSMutableParagraphStyle setMinimumLineHeight] Confusion
Re: [NSMutableParagraphStyle setMinimumLineHeight] Confusion
- Subject: Re: [NSMutableParagraphStyle setMinimumLineHeight] Confusion
- From: Glenn Andreas <email@hidden>
- Date: Mon, 20 Sep 2004 10:12:19 -0500
At 4:04 PM +0100 9/20/04, Matt Gough wrote:
I am trying to use [NSMutableParagraphStyle setMinimumLineHeight],
but am obviously missing something about what exactly the minimum
line height means.
[example snipped]
Using TextEdit, you can replicate this discrepancy using the
Spacing->Other option in the Ruler and setting the 'Line Height' to
'at least' 50 Points.
And that's exactly what you are getting - a line height "at least" 50
points. It may be more, but it is at least 50.
I guess there is some Font metric that I could be taking into
account, but in my own tests, I could find nothing obvious that
equated to the difference between the expected and actual baseline
offsets. Also, since this is a paragraph attribute, it has to be
able to cope with runs of different fonts.
FYI - I am trying to replicate (within the limitations of the Cocoa
text system) the equivalent to Cascading Style Sheets' 'line-height'
property.
What am I doing wrong?
Try also doing setMaximumLineHeight: 50.0
--
Glenn Andreas email@hidden
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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