Skip navigation.
 
mlRe: SuperScript to baseline offset
FROM : R. Scott Thompson
DATE : Fri Dec 03 20:40:02 2004

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

Related mailsAuthorDate
mlSuperScript to baseline offset Scott Thompson Dec 2, 23:59
mlRe: SuperScript to baseline offset Douglas Davidson Dec 3, 02:23
mlRe: SuperScript to baseline offset R. Scott Thompson Dec 3, 16:53
mlRe: SuperScript to baseline offset Douglas Davidson Dec 3, 18:21
mlRe: SuperScript to baseline offset R. Scott Thompson Dec 3, 20:40
mlRe: SuperScript to baseline offset Douglas Davidson Dec 3, 20:48
mlRe: SuperScript to baseline offset R. Scott Thompson Dec 3, 22:25