método get_text_width

get_text_width(, texto, fuente, escala)

Obtener el ancho del texto en unidades de puntos.

Devoluciones


@staticmethod
def get_text_width(text, font, scaling):
    ...
ParámetroTipoDescripción
textstrEl texto.
fontFontLa fuente del texto.
scalingfloatLa escala del texto.

Ver también