fix alignment bug

This commit is contained in:
Ace
2024-02-08 12:51:06 +01:00
parent 77ffc4146b
commit 438845c81e
2 changed files with 19 additions and 9 deletions

12
tests/test_functions.py Normal file
View File

@@ -0,0 +1,12 @@
"""
Test the functions in the functions module.
"""
from PIL import Image, ImageFont
from inkycal.custom import write, fonts
def test_write():
im = Image.new("RGB", (500, 200), "white")
font = ImageFont.truetype(fonts['NotoSans-SemiCondensed'], size = 40)
write(im, (125,75), (250, 50), "Hello World", font)
# im.show()