Re: How do I embed a font in an app?
Re: How do I embed a font in an app?
- Subject: Re: How do I embed a font in an app?
- From: Jens Alfke <email@hidden>
- Date: Mon, 7 Apr 2008 21:59:41 -0700
On 7 Apr '08, at 5:52 PM, Brad Peterson wrote:
Just embed it as a resource, and then use the code below to load it
for use.
This seems less efficient (and more complicated) than either of the
two earlier solutions. Loading the font into memory first means it
takes up heap space, which is private and has to be allocated out of
swap, rather than allowing the file to be memory-mapped. Better just
to point ATS at the file. And you can't get much simpler than just
pointing your Info.plist at a directory full of fonts.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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