• 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: Setting line height exactly - fails for certain unicode chars
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting line height exactly - fails for certain unicode chars


  • Subject: Re: Setting line height exactly - fails for certain unicode chars
  • From: "B.A. Winckler" <email@hidden>
  • Date: Wed, 04 Jul 2007 09:30:18 +0200

1. Is it even possible to "force" a line height like I am trying to do, or does setMaximumLineHeight / setMinimumLineHeight simply give the text system a hint as to which line height to use?

2. Assuming it is possible to accomplish what I am trying to do, can somebody please enlighten me as to how it should be done?

1. The text system does in fact use the min/max line height you have set. The problem is just that the "#" character dips lower than the rest of the characters, which decreases the baseline and adjusts the other characters upwards. This gives the appearance of unequal line heights.

No. It is not only that one line appears higher than the rest, it really is higher. I opened the file 'spacing-problem.rtf' (which is attached to the first message in this thread) and counted the number of white pixels between the top and bottom of each 'b'; this number equals 13 between line 1 and 2, 13 between line 2 and 3, 16 between line 3 and 4 (of course, each 'b' is also the same number of pixels high).


So the question still remains---why is the min/max line height setting ignored by the text system?
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Setting line height exactly - fails for certain unicode chars (From: "B.A. Winckler" <email@hidden>)
 >Re: Setting line height exactly - fails for certain unicode chars (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: enabling @try/@catch
  • Next by Date: Re: Core Data: first NSKeyValueObservingOptionOld is Null
  • Previous by thread: Re: Setting line height exactly - fails for certain unicode chars
  • Next by thread: Menubar windows are under other apps
  • Index(es):
    • Date
    • Thread