Re: customizing text layout - where to start?
Re: customizing text layout - where to start?
- Subject: Re: customizing text layout - where to start?
- From: Douglas Davidson <email@hidden>
- Date: Thu, 19 Dec 2002 09:19:02 -0800
On Wednesday, December 18, 2002, at 08:03 PM, Koen van der Drift wrote:
In an NSTextView I would like to customize the way the text is drawn
on the
screen. I looked at the layoutmanager and textstorage docs and they
seem
pretty overwhelming, and I am confused on how approach this. One thing
I
would like to add is a larger lineheight, so there is more whitespace
between each line. Another thing I am tring to do is to add a margin
on the
left side of the text.
Any pointers to where to start would be appreciated.
The class you are looking for is NSParagraphStyle. The value for the
NSParagraphStyleAttributeName attribute will be an instance of this
class.
Douglas Davidson
_______________________________________________
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.