Re: Subclassing NSTypesetter: fragment/used rects
Re: Subclassing NSTypesetter: fragment/used rects
- Subject: Re: Subclassing NSTypesetter: fragment/used rects
- From: Douglas Davidson <email@hidden>
- Date: Mon, 30 Sep 2002 10:25:50 -0700
On Monday, September 30, 2002, at 12:04 AM, Jirtme Laurens wrote:
followed the doc and the advice given on the list by Douglas Davidson
a long time ago. I implemented a poor man typesetter, but I want it to
support the NSTextContainer's fragmentLinePadding. I'am really thinking
that I do not understand the docs...
This is a little complicated. The way it works out is that the used
rect includes the lineFragmentPadding on the left and on the right of
the text. The glyph locations are relative to the origin of the line
fragment, not the used rect, so you have to take the padding into
account there no matter what the used rect is.
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.