I'm writing a Mac application that needs to be able to create, load, and use custom fonts at runtime using Cocoa. I've researched the NSFont class thoroughly, and all I can find is API's to load existing fonts and change simple parameters (E.G. size, weight, spacing, etc.).
I need to be able to create custom glyphs from scratch while my program is running, preferably using NSBezierPath, combine them into an NSFont object or something similar, and draw text to the screen using this font.
Is this possible? I'd imagine that font-creation applications must use this. If it is possible, how is it done?