• 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: line spacing of attributed string (was No Subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: line spacing of attributed string (was No Subject)


  • Subject: Re: line spacing of attributed string (was No Subject)
  • From: Jonathan Jackel <email@hidden>
  • Date: Sun, 17 Aug 2003 20:20:57 -0400

Make an NSMutableParagraphStyle and set its line spacing. Then add the
paragraph style to a dictionary of attributes paired with the
NSParagraphStyleAttributeName key. Then apply that attribute
dictionary to the attributed string.

On Sunday, August 17, 2003, at 05:31 PM, Michael Hanna wrote:

> I set an NSTextView's font to Zapfino. It looks great but there's a
> lot of spacing between lines. How do I alter the NSFont so that the
> spacing is not so wide. I was trying to use NSMutableAttributedString
> but that seems to apply only to a subrange of chars. Does
> NSLayoutManager do this? Is there a message I can send it to alter
> line height? At a glance I can't seem to find it..
>
> Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: line spacing of attributed string (was No Subject)
      • From: tony cate <email@hidden>
References: 
 >(no subject) (From: Michael Hanna <email@hidden>)

  • Prev by Date: Change An NSFont's 'Leading'
  • Next by Date: Re: Single-User Database
  • Previous by thread: (no subject)
  • Next by thread: Re: line spacing of attributed string (was No Subject)
  • Index(es):
    • Date
    • Thread