get_text_width method

get_text_width

Get width of text in unit of points.

Returns

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

See Also