How do I draw text at an angle using python's PIL?

后端 未结 6 1364
暗喜
暗喜 2020-12-04 12:19

Using Python I want to be able to draw text at different angles using PIL.

For example, imagine you were drawing the number around the face of a clock. The number <

6条回答
  •  孤城傲影
    2020-12-04 13:10

    for Linux, I was able to get fonts to work on debian using:

    fnt = ImageFont.truetype('LinLibertine_RB.otf', 40)
    

    or any font library you see under

    ls -lR /usr/share/fonts
    

    the names and examples of fonts are also contained in Gimp if you have that installed.

提交回复
热议问题