mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-03-01 21:02:00 +01:00
Amiri font which works for both arabic and latin
This commit is contained in:
parent
0ca2d02ee8
commit
76ac4c5b71
2 changed files with 1 additions and 1 deletions
BIN
src/eynollah/Amiri-Regular.ttf
Normal file
BIN
src/eynollah/Amiri-Regular.ttf
Normal file
Binary file not shown.
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue