Re: line spacing of attributed string (was No Subject)
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.
References: | |
| >(no subject) (From: Michael Hanna <email@hidden>) |