calculate_text_size method

calculate_text_size

Recalculate the text area

Returns

Text’s Size in an array(width and height).

def calculate_text_size(self):
    ...

Example


# The size of the text area is:w=size[0],h=size[1]
size = shape.calculate_text_size()

See Also