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: XiaoGang Li <email@hidden>
- Date: Sat, 17 Oct 2009 10:52:26 +0800
Yes, it is really strange feature, this is used internal. My application is
distributed with bundles of document templates. These templates should be
designed by your graphic designers before being distributed, using the
limited fonts installed in the bundle. Anyway, user can use other fonts
from the system and third parties.
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.
Thanks again for your feedback.
On Fri, Oct 16, 2009 at 11:57 PM, Jens Alfke <email@hidden> wrote:
>
> 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