# it has been depricated since the version 10.0 # use textbbox and attribute instead _, _, width, height = draw.textbbox((0, 0), "Your Text", your_font) # Or you can use the textlenght width = draw.textlenght("text", font) height = font_size * number_of_lines