• 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: SuperScript to baseline offset
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SuperScript to baseline offset


  • Subject: Re: SuperScript to baseline offset
  • From: "R. Scott Thompson" <email@hidden>
  • Date: Fri, 3 Dec 2004 13:40:02 -0600


On Dec 3, 2004, at 11:21 AM, Douglas Davidson wrote:


On Dec 3, 2004, at 7:53 AM, R. Scott Thompson wrote:


I know in the WWDC presentation this past year you mentioned that Tiger will include drawing routines that allow you to position the text using the baseline rather than the upper left corner of the text box. Is there a way in 10.2/10.3, when I'm working with a text layout, to determine what offset in the layout is the "baseline" for a given line fragment (i.e. the line from which baseline offsets are calcuated)?

Yes. Ask the layout manager's typesetter, using baselineOffsetInLayoutManager:glyphIndex:.

OK. I'll try that.

Is there currently any way to adjust the tracking of a style run in an attributed string (similar to the kATSUTrackingTag in an ATSUI style), or is that something I would have to handle with a custom layout? Is tracking the same thing that is handled by NSExpansionAttributeName?

Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SuperScript to baseline offset
      • From: Douglas Davidson <email@hidden>
References: 
 >SuperScript to baseline offset (From: Scott Thompson <email@hidden>)
 >Re: SuperScript to baseline offset (From: Douglas Davidson <email@hidden>)
 >Re: SuperScript to baseline offset (From: "R. Scott Thompson" <email@hidden>)
 >Re: SuperScript to baseline offset (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: compositing views into one window
  • Next by Date: Re: Nib files and outlets
  • Previous by thread: Re: SuperScript to baseline offset
  • Next by thread: Re: SuperScript to baseline offset
  • Index(es):
    • Date
    • Thread