Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a TTF or OTF font programmatically [C / C++]

Tags:

c++

fonts

How do you go by creating a bitmap font with C or C++? I made some software that creates letterforms with your body and converts that to vector shapes (or bitmaps). I would like to output that result to a TTF, OTF or similar font file.

You can see a video of the software here:

http://vimeo.com/21396223

like image 712
mga Avatar asked Mar 27 '11 18:03

mga


People also ask

Is OTF and TTF the same?

OTF and TTF are extensions that are used to indicate that the file is a font, which can be used in formatting the documents for printing. TTF stands for TrueType Font, a relatively older font, while OTF stands for OpenType Font, which was based in part on the TrueType standard.

What is OTF to TTF?

A format for displaying and storing OpenType fonts. It can be scaled without losing font quality.


1 Answers

See the specs for OTF and TTF. Also, there's an open source app for creating fonts called FontForge, you can look at its implementation.

like image 97
Stefan Monov Avatar answered Oct 21 '22 09:10

Stefan Monov