Merge pull request #8239 from opentx/3djc/fix-dblsize-i

Fix i in dblsize
This commit is contained in:
Bertrand Songis
2021-01-25 14:27:08 +01:00
committed by GitHub
4 changed files with 6 additions and 0 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

+6
View File
@@ -77,6 +77,12 @@ def createFontBitmap(filename, fontname, fontsize, fontoffset, foreground, backg
image.paste(extraImage.copy(),(width,1))
elif c == " ":
pass
elif c == "j" and fontsize == 32:
w, h = font.getsize(c)
draw.text((width + 2, fontoffset), c, fill=foreground, font=font)
elif c == "j" and fontsize == 64:
aw, h = font.getsize(c)
draw.text((width + 3, fontoffset), c, fill=foreground, font=font)
else:
w, h = font.getsize(c)
draw.text((width + 1, fontoffset), c, fill=foreground, font=font)