|
@ -10,6 +10,10 @@ Download, extract and rename the last Unifont tar.gz file (https://unifoundry.co |
|
|
tar -xvf unifont.tar.gz |
|
|
tar -xvf unifont.tar.gz |
|
|
mv unifont-16.0.01 unifont |
|
|
mv unifont-16.0.01 unifont |
|
|
|
|
|
|
|
|
|
|
|
Change the GLYPH_MAX_WIDTH variable from hex2otf.c to 64 and compile it with `gcc unifont/src/hex2otf.c -o hex2otf` |
|
|
|
|
|
|
|
|
|
|
|
#define GLYPH_MAX_WIDTH 64 ///< Maximum glyph width, in pixels. |
|
|
|
|
|
|
|
|
Draw glyphs in a pad following this format (hexadecimal identifier): |
|
|
Draw glyphs in a pad following this format (hexadecimal identifier): |
|
|
|
|
|
|
|
|
F4910: |
|
|
F4910: |
|
@ -42,25 +46,29 @@ Convert uniascii to unihex and add them to the base file |
|
|
|
|
|
|
|
|
./unifont/src/hexdraw qunifont.txt >> qunifont.hex |
|
|
./unifont/src/hexdraw qunifont.txt >> qunifont.hex |
|
|
|
|
|
|
|
|
|
|
|
TODO: remove duplicate id |
|
|
|
|
|
|
|
|
|
|
|
??? |
|
|
|
|
|
|
|
|
Convert unihex to bdf |
|
|
Convert unihex to bdf |
|
|
|
|
|
|
|
|
./unifont/src/hex2bdf qunifont.hex > qunifont.bdf |
|
|
./unifont/src/hex2bdf qunifont.hex > qunifont.bdf |
|
|
|
|
|
|
|
|
TODO: convert to OTF, add OpenType features, change metadata |
|
|
Convert unihex to otf, --help for format list |
|
|
|
|
|
|
|
|
|
|
|
./unifont/src/hex2otf hex=qunifont.hex out=qunifont.otf format=truetype |
|
|
|
|
|
|
|
|
|
|
|
TODO: add OpenType features, change metadata |
|
|
|
|
|
|
|
|
## Other useful commands |
|
|
## Other useful commands |
|
|
|
|
|
|
|
|
Convert unihex to png (-p for plage) |
|
|
Convert unihex to png preview table (-p for plage) |
|
|
|
|
|
|
|
|
./unifont/src/unihex2png -i qunifont.hex -o qunifont.png -p 0 |
|
|
./unifont/src/unihex2png -i qunifont.hex -o qunifont.png -p 0 |
|
|
|
|
|
|
|
|
Convert unihex to sfd |
|
|
Convert unihex to sfd |
|
|
|
|
|
|
|
|
??? see https://www.venea.net/man/hex2sfd(1) |
|
|
./unifont/src/hex2sfd < qunifont.hex > qunifont.sfd |
|
|
|
|
|
|
|
|
Convert unihex to otf |
|
|
|
|
|
|
|
|
|
|
|
./unifontsrc/hex2otf ??? |
|
|
|
|
|
|
|
|
|
|
|
Print specific glyph in terminal from hexcode |
|
|
Print specific glyph in terminal from hexcode |
|
|
|
|
|
|
|
|