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: Jens Alfke <email@hidden>
- Date: Fri, 16 Oct 2009 08:57:43 -0700
On Oct 16, 2009, at 3:31 AM, XiaoGang Li wrote:
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.
I don't know what your applications does, but that seems like a really
strange feature. I have a lot of fonts installed, and when I use an
app I expect to be able to use them. If the app only let me use a
couple of fonts that were bundled with it, I'd call that a bug.
(Also, do you have permission to bundle these fonts? Most fonts can't
be re-distributed without a commercial license from the owner.)
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.
Isn't the set of bundled fonts hard-coded? Just make a list of their
names (maybe in a plist file) and read that. I think trying to extract
the names out of the font files themselves would be much too difficult
since there's no API for it.
—Jens
_______________________________________________
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