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

Getting Font Metrics with ATS



Hi. I'm trying to get the font metrics (ascent, descent, etc) from a given font.
I'm trying to use the newer API's if possible.


The function ATSFontGetVerticalMetrics would appear to be what I'd want.

But nowhere is there a place to specify the size of the font for the metrics I want.

When I call ATSFontGetVerticalMetrics, all fields are set to zero except the underlinePosition and underlineThickness.


I realize the Font Manager function FetchFontInfo will return the information I need. But it only returns integer values. I'm hoping to get floating point or fixed point values if possible.



Any help in getting this information would be appreciated...

--
email@hidden       http://www.mts.net/~gbeggs1/
_______________________________________________
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.