mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-04 04:25:46 -04:00
Burn all GIFs: Convert everything to PNGs.
DeuTex 5 now supports these, and we can use real transparency indexes in the files too, so no more ugly cyan background!
This commit is contained in:
parent
96ca8bf67b
commit
9c6c681276
5952 changed files with 243 additions and 252 deletions
|
@ -35,7 +35,7 @@ class Font(object):
|
|||
return result
|
||||
|
||||
def get_font_widths(self):
|
||||
charfiles = glob('../stcfn*.gif')
|
||||
charfiles = glob('../stcfn*.png')
|
||||
self.char_widths = {}
|
||||
for c in range(128):
|
||||
filename = self.char_filename(chr(c))
|
||||
|
@ -51,7 +51,7 @@ class Font(object):
|
|||
return self.char_widths[c]
|
||||
|
||||
def char_filename(self, c):
|
||||
return '../stcfn%03d.gif' % (ord(c))
|
||||
return '../stcfn%03d.png' % (ord(c))
|
||||
|
||||
def draw_commands_for_text(self, text, x, y):
|
||||
text = text.upper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue