Hello,
Convert a file OpenType, that is fine but if our font is not TrueType, ttf to eot no use. There is no equivalent for OpenType, but it is possible to convert an OpenType font with TrueType. Here's how. We will need fontforge :
Code:
$ Sudo apt-get install fontforge
The write a small shell script that will save us going through the horrible interface fontforge (save in otf2ttf.sh example):
Code:
#! / Usr / local / bin / fontforge # Quick and dirty hack: converts to do to truetype (. Ttf) Print ("Opening" + $ 1) Open ($ 1) Print ("Saving" + $ 1: r + ". ttf ") Generate ($ 1: r +." ttf "); Quit (0);
It is used to convert this file so otf ttf in (and then used ttf to eot finally get the EOF file)
Code:
$ Fontforge-script otf2ttf.sh ../delicious-123/file_name
Bookmarks