Merge pull request #320 from aceinnolab/feature/#281

Fix an issue with alignment of text
This commit is contained in:
Ace
2024-02-08 15:22:58 +03:00
committed by GitHub
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()