calculate_text_size方法

calculate_text_size(self)

重新计算文本区域

返回

数组中的文本大小(宽度和高度)。


def calculate_text_size(self):
    ...

例子


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

也可以看看