3djc/horus narrow arrows gap (#4183)

* Narrow gap between previous char and up and down arrow in STDSIZE

* Change font generator too and run it once

* Only apply to stdsize
This commit is contained in:
3djc
2017-01-02 11:24:43 +01:00
committed by Bertrand Songis
parent b931b0c85c
commit 2a0a75a178
2 changed files with 3 additions and 0 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

+3
View File
@@ -91,6 +91,9 @@ def createFontBitmap(filename, fontname, fontsize, fontbold, foreground, backgro
pass
elif c == "." and fontsize <= 8:
painter.drawPoint(width, fontsize)
elif (c == u"↑" or c == u"↓") and fontsize == 16:
rect = metrics.boundingRect(c)
painter.drawText(width - 1, fontsize, c) # fontsize-bottom+1 -17 / 7
else:
rect = metrics.boundingRect(c)
if fontsize >= 24: