from PIL import Image, ImageDraw, ImageFont font1 = ImageFont.truetype("arial.ttf", 16) ll = 'str' text_size = font1.get size(ll) print(font1)
ImageFont.getsize() 也不可能