mpl.mathtext.AFM.string_width_height

AFM.string_width_height(s)[source]

Return the string width (including kerning) and string height as a (w, h) tuple.