Re: Underlining text
Re: Underlining text
- Subject: Re: Underlining text
- From: Jens Alfke <email@hidden>
- Date: Fri, 12 Aug 2011 08:20:55 -0700
On Aug 12, 2011, at 4:56 AM, patrick machielse wrote:
> - The underline seems to stop 1 or 2 pixels short of the end of the underlined text.
The underline is most likely being drawn to the end of the last character’s advance, which isn’t necessarily the same as the optical right margin of the glyph. Some typefaces have characters that stick out quite a ways past their advance, especially italics and swashy scripts.
If you want to be sure, try putting the same text someplace editable, then clicking at the end of the text to get an insertion point. Its X position will be at the advance of the last character.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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