Skip to content
Discussion options

You must be logged in to vote

Testing with the following code

from PIL import Image, ImageDraw, ImageFont
ttf = ImageFont.truetype("EduNSWACTCursive-Regular.ttf", 64)

img = Image.new("RGB", (170, 110), "white")
d = ImageDraw.Draw(img)
d.text((10, 10), "hello", font=ttf, fill="black")

img.save("out.png")

gives me

if I'm not using raqm, and

if I am.

So I conclude that you just need to have raqm installed. I don't know anything about your setup or how you installed Pillow, so I can only suggest starting at https://pillow.readthedocs.io/en/stable/installation/basic-installation.html

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@test3211234
Comment options

@radarhere
Comment options

Answer selected by test3211234
@test3211234
Comment options

@radarhere
Comment options

@test3211234
Comment options

@radarhere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants