Re: How to retrieve the font information from TrueType font file?
Re: How to retrieve the font information from TrueType font file?
- Subject: Re: How to retrieve the font information from TrueType font file?
- From: Alastair Houghton <email@hidden>
- Date: Sat, 17 Oct 2009 22:18:46 +0100
On 17 Oct 2009, at 03:52, XiaoGang Li wrote:
Your solution is good. At first, I think it is simple to list all the
limited fonts in the plist file, and it is easy to enumerate these
fonts.
But, I think, when other font files are added to the bundle by other
engineer, I will update my plist file at the same time. this
solution seems
unrobust.
If you're loading the fonts from inside your bundle yourself (e.g.
using CGFontCreateWithDataProvider), then it's pretty straightforward
to use
CGFontCopyTableForTag() or the other CGFont APIs to access the font
data.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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