• 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
Loading a TTF font
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading a TTF font


  • Subject: Loading a TTF font
  • From: John Stiles <email@hidden>
  • Date: Wed, 8 Oct 2003 16:03:04 -0700

I'm working on a program which needs to load a font from a Windows-origin ".TTF" or ".TTC" font, and turn it into an NSFont that would be suitable for rendering text as bezier paths (in my case, I use -NSBezierPath appendBezierPathWithGlyphs:count:inFont:).

Is this easily doable with Cocoa? Or am I looking at a painful process?

If necessary I could preprocess the font to be more Mac-friendly in some way, but that means wasting a few hundred K of disk space on our CD for two copies of one font. In the worst case (the Japanese version), that could mean up to 10MB gone. Not really thrilled about that option :)

Thanks for any suggestions :)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Loading a TTF font
      • From: Aki Inoue <email@hidden>
References: 
 >Your 15 Seconds of Translation Fame (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: Your 15 Seconds of Translation Fame
  • Next by Date: Re: key modifiers change during drag
  • Previous by thread: Re: Your 15 Seconds of Translation Fame
  • Next by thread: Re: Loading a TTF font
  • Index(es):
    • Date
    • Thread