[Horus] Is the font better?

This commit is contained in:
Bertrand Songis
2016-04-09 18:23:29 +02:00
parent 5ed27f157d
commit 2f1f4243f0
9 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ def createFontBitmap(filename, fontname, fontsize, fontbold, foreground, backgro
if fontsize >= 24:
return r.width() + 3
else:
return r.width() + 1
return r.width() + r.left() + 1
def getFontWidth():
width = 0
@@ -90,7 +90,7 @@ def createFontBitmap(filename, fontname, fontsize, fontbold, foreground, backgro
if fontsize >= 24:
painter.drawText(width - rect.left() + 1, fontsize - 2, c) # fontsize-bottom+1 -17 / 7
else:
painter.drawText(width - rect.left(), fontsize - 1, c) # fontsize-bottom+1 -17 / 7
painter.drawText(width + 1, fontsize - 1, c) # fontsize-bottom+1 -17 / 7
width += getCharWidth(c)
coords.append(width)