get_text_width méthode

get_text_width(text, font, scaling)

Obtenir la largeur du texte en unité de points.

Retour

def get_text_width(self, text, font, scaling):
    ...
Paramètre Taper Description
text str Le texte.
font Font La police du texte.
scaling float La mise à l’échelle du texte.

Voir également