Draw bold/italic text with PIL?

后端 未结 4 1972
悲&欢浪女
悲&欢浪女 2021-01-07 18:37

How to draw bold/italic text with PIL? ImageFont.truetype(file, size) has an option to specify font size only.

4条回答
  •  攒了一身酷
    2021-01-07 19:22

    Many fonts use different TTF files for their bold/italic versions, so I'd imagine if you just specify that file it would work.

提交回复
热议问题