How to retrieve the font information from TrueType font file?
How to retrieve the font information from TrueType font file?
- Subject: How to retrieve the font information from TrueType font file?
- From: XiaoGang Li <email@hidden>
- Date: Fri, 16 Oct 2009 18:31:48 +0800
Hi,
In the resource directory of my application bundle, there is a
directory named "Fonts", which includes all the fonts I can use. I means
that the other uncontained fonts which come from the system or third party
application will be invalid in my application. when the users use my
application to draw text, only the fonts contained in the bundle should be
valid. This is the backgroud of my question.
After getting the font name from the font used by the user, need to
check whether this font is valid, so, how to get the font information from
my font files.
I have read NSFontManager, it can get all the fonts in the system, I
just to want to get the font name from my .ttf font file.
I also have read ATS relalted, but failed to find a solution, there is
no such interface to get detailed information from a ttf file.
Hope the list can help me, the point of my question is how to get the
information from the ttf font file?
Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden