1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-30 06:29:48 +00:00

Use BMP format, since SDL can load it natively.

(Vs. needing to install SDL_image just for the font files.)
This commit is contained in:
Peter Evans 2017-12-19 16:13:04 -06:00
parent aad60fa629
commit aefe74cae4
3 changed files with 1 additions and 1 deletions

BIN
fonts/apple2-system.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -110,7 +110,7 @@ def build_font(name, path, gridfiles):
glyphname = gridfile.split('.')[0]
glyphchar = name_to_char(glyphname)
render(glyph_coords(glyphchar), glyphchar, openf.read(), pix)
img.save('./fonts/' + name + '.png')
img.save('./fonts/' + name + '.bmp')
def name_to_char(name):
if not glyphmap[name]: