Search code examples
fontsfont-facetruetype

Possible to Code a TTF/OTF/SVG font?


I wonder if it is possible to "code" a TTF/OTF/SVG font? Somehow write in all the cordinates for each letter.

If so, where can I learn more about it?


Solution

  • It's certainly possible. SVG and SVG Fonts are both XML documents. So, assuming you have a way to lay out the letter forms in SVG-compatible shapes, the rest should be straightforward, assuming good XML support.

    You can then use FontForge to convert to other formats.

    Edit: Another question produced a manual way to produce SVG Fonts, which should be useful in guiding the design of a program to do so.