• 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: [NSMutableParagraphStyle setMinimumLineHeight] Confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >[NSMutableParagraphStyle setMinimumLineHeight] Confusion (From: Matt Gough <email@hidden>)

  • Prev by Date: Select a NSBezierPath
  • Next by Date: Re: -NSView setHidden: in 10.2
  • Previous by thread: [NSMutableParagraphStyle setMinimumLineHeight] Confusion
  • Next by thread: Bug in NSTextField?
  • Index(es):
    • Date
    • Thread