méthode get_text_width

get_text_width(, texte, police, mise à l’échelle)

Obtenir la largeur du texte en unités de points.

Retour


@staticmethod
def get_text_width(text, font, scaling):
    ...
ParamètreTaperDescription
textstrLe texte.
fontFontLa police du texte.
scalingfloatLa mise à l’échelle du texte.

Voir également