Read font files into fontParts objects and write them out again.
Here's how to convert a font from one format to another (from the command line):
babelfont My-Font.glyphs My-Font.ufo
Here's how to convert a font from one format to another (from a Python script):
from babelfont import Babelfont font = Babelfont.open("My-Font.glyphs") font.save("My-Font.ufo")
To interact with the font
object, see the fontParts documentation.
Currently Babelfont supports:
- UFO (Read and write)
- Glyphs (Read and write)
- OTF (Read only)
- TTF (Read only)
- Fontlab VFJ (Read only)
- Free software: Apache Software License 2.0