• 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
Underlining text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Underlining text


  • Subject: Underlining text
  • From: patrick machielse <email@hidden>
  • Date: Fri, 12 Aug 2011 13:56:41 +0200

I'm underlining some text using NSMutableString's NSUnderlineStyleAttributeName attribute (on 10.7). However, the results aren't quite right.

There seem to be 2 separate issues:

- The underline seems to stop 1 or 2 pixels short of the end of the underlined text.
- If the text has a NSShadowAttributeName set, the shadow drops _on_ the underline. This makes it seem as if the underline and the text are not in the same plane. [I'm assuming the 'under' in underline refers to the y-axis only and not to the z-axis…]

Are these known limitations / bugs or is there a better way to draw underlines?

Thanks,
patrick
--
Patrick Machielse
Hieper Software

http://www.hieper.nl
email@hidden

_______________________________________________

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

  • Follow-Ups:
    • Re: Underlining text
      • From: Jens Alfke <email@hidden>
  • Prev by Date: clipping and scrolling
  • Next by Date: Re: Underlining text
  • Previous by thread: Re: clipping and scrolling
  • Next by thread: Re: Underlining text
  • Index(es):
    • Date
    • Thread