Amiri font which works for both arabic and latin

This commit is contained in:
vahidrezanezhad 2026-02-24 13:55:45 +01:00 committed by kba
parent d2123a2746
commit 303bdfe0e7
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -11,6 +11,6 @@ else:
def get_font(font_size):
#font_path = "Charis-7.000/Charis-Regular.ttf" # Make sure this file exists!
font = importlib_resources.files(__package__) / "../Charis-Regular.ttf"
font = importlib_resources.files(__package__) / "../Amiri-Regular.ttf"
with importlib_resources.as_file(font) as font:
return ImageFont.truetype(font=font, size=font_size)