Creating a font programmatically

zencd's picture

I'm looking for a simple API or font-project-format or just font-format allowing to generate a font (font project) from my own program code with maximum ease.

The properties I'd like to set for each glyph are:
- vector curves (eps/ai/svg/bitmap)
- width/height
- baseline

The other properties could be tweaked manually in a font editor.

Thus it should be either an open and friendly file format or well documented API.

Please let me know if you know such a solution. Thanks.

frankrolf's picture

A good set of tools for your ideas comes with Robofab.
You can also do scripting with on-board tools in FontLab itself.
Further reading: Metafont.

sgh's picture

FontForge also has a Python interface that allows direct programmatic creation of glyphs.

Khaled Hosny's picture

Check my Punk Nova font which uses FontForge's Python interface to create a font without any interactions.

zencd's picture

I thank you all! It's looks like what I need.

Khaled Hosny's picture

Typophile breaks https:// links for some reason, the above link should be https://github.com/khaledhosny/punk-otf

Syndicate content Syndicate content