Cosmetics
This commit is contained in:
@@ -29,7 +29,7 @@ def createFontBitmap(filename, fontname, fontsize, fontoffset, foreground, backg
|
|||||||
coords = []
|
coords = []
|
||||||
font_filename = 'fonts/' + fontname + '.ttf'
|
font_filename = 'fonts/' + fontname + '.ttf'
|
||||||
|
|
||||||
print 'Font filename: %s' % font_filename
|
print("Font filename: %s" % font_filename)
|
||||||
font = ImageFont.truetype(font_filename, fontsize)
|
font = ImageFont.truetype(font_filename, fontsize)
|
||||||
|
|
||||||
extraImage = None
|
extraImage = None
|
||||||
@@ -40,7 +40,7 @@ def createFontBitmap(filename, fontname, fontsize, fontoffset, foreground, backg
|
|||||||
extraImage = extraImage.convert('RGB');
|
extraImage = extraImage.convert('RGB');
|
||||||
|
|
||||||
except IOError:
|
except IOError:
|
||||||
print 'Missing extra symbol filename %s' % extraFilename
|
print("Missing extra symbol filename %s" % extraFilename)
|
||||||
|
|
||||||
def getCharWidth(c):
|
def getCharWidth(c):
|
||||||
if c in chars_extra:
|
if c in chars_extra:
|
||||||
|
|||||||
Reference in New Issue
Block a user