1
0

More than 1 year has passed since last update.

Pillow10で削除される「getsize」を「multiline_textbbox」で置き換える

Last updated at Posted at 2022-12-27

結論

self.draw.font.getsize('string')



self.draw.multiline_textbbox([0, 0], 'string') #の2,3番目

getsize

self.draw.font.getsize('string')

>> (138, 44)

multiline_textbbox

self.draw.multiline_textbbox([0, 0], 'string')

>> (0, 9, 138, 44)

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0