Grx.Font.get_text_width

@accepts(Grx.Font, unicode)
@returns(int)
def get_text_width(self, text):
    # Python wrapper for grx_font_get_text_width()
  

Gets the width of a string using the specified font.

The string must contain valid UTF-8. Check using g_utf8_validate() first if text is from an unknown source.

self

the font

text

the text

Returns