Исходный код приведен ниже.
Код: Выделить всё
from PIL import Image, ImageDraw
img = Image.new("RGB", (30, 30), (255, 255, 255))
draw = ImageDraw.Draw(img)
draw.text((0, 0), "ab", (0, 0, 0), direction="ttb")
img.save("test.png", "png")
Код: Выделить всё
KeyError: 'setting text direction, language or font features is not supported without libraqm'
Код: Выделить всё
Windows 11
Python 3.8.10
Pillow 10.4.0
Как установить предварительно созданное колесо Pillow Wheel с библиотеками DLL libraqm в Windows?
Но https://www.lfd.uci.edu/%7Egohlke/pythonlibs/#pillow не работает.
Я установил vcpkg, а затем установлен libraqm.
Я установил %mydirectory%\vcpkg\installed\x64-windows\lib и %mydirectory%\vcpkg\installed\x64-windows\bin в переменная среды Path.
Однако мой исходный код не работал.
Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/788 ... on-windows