gpt4 book ai didi

python - PIL : how to draw € on an image with draw. 文本?

转载 作者:太空宇宙 更新时间:2023-11-04 06:34:19 26 4
gpt4 key购买 nike

我在表单值中有一个标题(“cadeau check 50 €”),我想使用 arial.ttf 将其写入背景图像。我的文字是正确的,但对于欧元符号。我有 2 [] 到位。我不知道问题出在哪里。这是 PIL 中的编码问题,还是我的字体有问题?

最佳答案

也许使用 Unicode 字符串??比如 u'cadeau check 50 €' ...现在,你的字体也有相应的字形吗?

关于python - PIL : how to draw € on an image with draw. 文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13476383/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com