Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Getting Font Metrics with ATS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Font Metrics with ATS



Hello,

>> But nowhere is there a place to specify the size of the font for the
>> metrics I want.
> The documentation did not specify the unit, but I guess you
> need to multiply the value with something, perhaps 'size'.

Exactly. As it was with font metrics from FOND that were metrics for 1pt
size font.

>> When I call ATSFontGetVerticalMetrics, all fields are set to zero
>> except the underlinePosition and underlineThickness.
> The documentation says they will be set to 0 when the font does
> not have the properties.

Would someone be so kind to explain it? I've read: "If one or more
measurements are not available for a font, then the appropriate fields in
the ATSFontMetrics data structure are set to 0." How is it possible for
ascent or descent values?

Best regards,
Cyril

--
Cyril Murzin
Chief of System Design, Macintosh

FontLab Ltd.
http://www.fontlab.com

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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.