-
Notifications
You must be signed in to change notification settings - Fork 92
Convert font
Jakub Jirutka edited this page Jul 15, 2015
·
3 revisions
Use otf2bdf (mirror) to convert any OpenType to BDF.
$ cd fonts
$ otf2bdf /path/to/myfont.otf > myfont.bdf
$ make
If you see something like this:
$ cd ttystudio/fonts
$ make
ttystudio/vendor/pxxl.js:1066
throw new Error("Unable to parse font!");
^
Error: Unable to parse font!
at Function.parseBDF (ttystudio/vendor/pxxl.js:1066:9)
at LoadFont (ttystudio/vendor/pxxl.js:1163:24)
at Object.LoadFont (ttystudio/vendor/pxxl.js:1179:16)
at Function.pxxl.sync (ttystudio/vendor/pxxl.js:1200:8)
at compileFont (ttystudio/fonts/index.js:26:21)
at Object.<anonymous> (ttystudio/fonts/index.js:133:3)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
make: *** [all] Error 1
Then check if the BDF file doesn’t contain any character from extended ASCII table like © etc.