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:
parent
aad60fa629
commit
aefe74cae4
BIN
fonts/apple2-system.bmp
Normal file
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 |
@ -110,7 +110,7 @@ def build_font(name, path, gridfiles):
|
|||||||
glyphname = gridfile.split('.')[0]
|
glyphname = gridfile.split('.')[0]
|
||||||
glyphchar = name_to_char(glyphname)
|
glyphchar = name_to_char(glyphname)
|
||||||
render(glyph_coords(glyphchar), glyphchar, openf.read(), pix)
|
render(glyph_coords(glyphchar), glyphchar, openf.read(), pix)
|
||||||
img.save('./fonts/' + name + '.png')
|
img.save('./fonts/' + name + '.bmp')
|
||||||
|
|
||||||
def name_to_char(name):
|
def name_to_char(name):
|
||||||
if not glyphmap[name]:
|
if not glyphmap[name]:
|
||||||
|
Loading…
Reference in New Issue
Block a user