Re: SuperScript to baseline offset
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