Re: Setting line height exactly - fails for certain unicode chars
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