JuanPotato / Tofu
- вторник, 8 августа 2017 г. в 03:13:20
The complete opposite of a font
This is an attempt by me to make a font that is just a box with the unicode code point inside. These are usually not in a font but rather programmatically generated by programs as they encounter characters that have no associated glyph.
Because I wanted zero width characters in my code to be not zero width. I was trying out vss code (pretty nice imo) and found I should be able to use some CSS magic to make it so that certain characters are displayed by this font. (see also)
Yeah probably, but for its very specific use case it's not terribly bad.
WARNING: PLEASE DO NOT RUN THIS CODE ON A HARD DRIVE, I'M NOT SURE HOW LONG IT WOULD TAKE. I USED A RAM DISK
I used python3 for this, it may work in python2. If it does not please feel free to make a pull request to fix it but I am not actively supporting python2.
The syntax for the program is as follows. gen_tofu.py 0000 FFFD -o
0000
is the start
FFFD
is the end
-o
makes it output otf rather than ttf (should make this default, ttf screws up more in fontforge than otf)
MIT, not sure if the font needs a special license. ▯