Cosmetics

This commit is contained in:
Bertrand Songis
2015-12-10 23:44:56 +01:00
parent 8bdce4e213
commit 00100c0c86
21 changed files with 66 additions and 51 deletions
+3 -1
View File
@@ -49,8 +49,10 @@ def createFontBitmap(filename, fontname, fontsize, fontbold, foreground, backgro
width = getFontWidth(fontsize, metrics)
top, bottom = getFontTopBottom(fontsize, metrics)
extraImage = QtGui.QImage("fonts/extra_%dpx.png" % fontsize)
extraFilename = "fonts/extra_%dpx.png" % fontsize
extraImage = QtGui.QImage(extraFilename)
if extraImage.isNull():
print "No extra font file", extraFilename
extraWidth = 0
else:
extraWidth = extraImage.size().width()