get_text_width method

get_text_width(, text, font, scaling)

Get width of text in unit of points.

Returns


@staticmethod
def get_text_width(text, font, scaling):
    ...
ParameterTypeDescription
textstrThe text.
fontFontThe font of the text.
scalingfloatThe scaling of text.

See Also