• 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
Drawing NSAttributedString with negative leading/spacing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing NSAttributedString with negative leading/spacing?


  • Subject: Drawing NSAttributedString with negative leading/spacing?
  • From: Jonathan del Strother <email@hidden>
  • Date: Fri, 10 Feb 2006 16:52:30 +0000

I'm using NSAttributedString to draw strings into an image.

Frustratingly, NSParagraphStyle doesn't allow you to set negative line spacings. This is possible in, say, Illustrator, and can come in handy, since certain fonts are quite widely spaced (eg Verdana).

I've tried the naive approach of bypassing setParagraphSpacing: by setting the _paragraphSpacing/_lineSpacing ivars manually, but that isn't working. Any other suggestions on getting around this?

Is there a good reason for the nonnegative restriction?

Jon

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Drawing NSAttributedString with negative leading/spacing?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Calling TransitionWindowWithOptions on a WindowRef returned from a [NSWindow windowRef]
  • Next by Date: Re: Multiple shortcuts for one button
  • Previous by thread: Re: Multiple shortcuts for one button
  • Next by thread: Re: Drawing NSAttributedString with negative leading/spacing?
  • Index(es):
    • Date
    • Thread