View Full Version : NSFont load font from file

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?

Mar 2, 2009, 06:13 PM
Look at the bottom of this page:

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