• 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: Subclassing NSTypesetter: fragment/used rects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Passing by reference vs Passing by value
      • From: Arthur Clemens <email@hidden>
References: 
 >Subclassing NSTypesetter: fragment/used rects (From: Jérôme Laurens <email@hidden>)

  • Prev by Date: Re: linking in private non-Framework libraries
  • Next by Date: Re: linking in private non-Framework libraries
  • Previous by thread: Subclassing NSTypesetter: fragment/used rects
  • Next by thread: Passing by reference vs Passing by value
  • Index(es):
    • Date
    • Thread