Merge pull request #8239 from opentx/3djc/fix-dblsize-i
Fix i in dblsize
This commit is contained in:
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 |
@@ -77,6 +77,12 @@ def createFontBitmap(filename, fontname, fontsize, fontoffset, foreground, backg
|
|||||||
image.paste(extraImage.copy(),(width,1))
|
image.paste(extraImage.copy(),(width,1))
|
||||||
elif c == " ":
|
elif c == " ":
|
||||||
pass
|
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:
|
else:
|
||||||
w, h = font.getsize(c)
|
w, h = font.getsize(c)
|
||||||
draw.text((width + 1, fontoffset), c, fill=foreground, font=font)
|
draw.text((width + 1, fontoffset), c, fill=foreground, font=font)
|
||||||
|
|||||||
Reference in New Issue
Block a user