PDA

View Full Version : NSFont load font from file




WhiteRabbit
Mar 2, 2009, 05:24 PM
Does anyone know about using custom fonts in Cocoa? I have a font I'd like to use in my application, and it works because I have the font installed, but I can't expect to have it available. I need to package it with the application, and somehow load it from the file.

However, NSFont documentation doesn't list any methods I might expect like fontFromURL or similar. Has anyone done anything like this?



kainjow
Mar 2, 2009, 06:13 PM
Look at the bottom of this page:
http://www.cocoadev.com/index.pl?UsingCustomFontsInYourCocoaApplications

WhiteRabbit
Mar 2, 2009, 06:32 PM
This looks like just the thing. Thanks.