• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to retrieve the font information from TrueType font file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to retrieve the font information from TrueType font file?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Programming Style: Method Definition with or without a semicolon.
  • Next by Date: Re: odd behavior with NSError?
  • Previous by thread: Re: NSURLRequest SSL Mac vs iPhone
  • Next by thread: Re: How to retrieve the font information from TrueType font file?
  • Index(es):
    • Date
    • Thread