Get size of text



    font = ImageFont.truetype(
        'path/to/font.ttf', size
    )
    size = font.getsize(text)