'draw the text by converting them to paths using textpath module.
Parameters
prop : `matplotlib.font_manager.FontProperties`
font property
s : str
text to be converted
usetex : bool
If True, use matplotlib usetex mode.
ismath : bool
If True, use mathtext parser. If "TeX", use *usetex* mode.'

def _draw_text_as_path(self, gc, x, y, s, prop, angle, ismath):

    (path, transform) = self._get_text_path_transform(x, y, s, prop, angle, ismath)
    color = gc.get_rgb()
    gc.set_linewidth(0.0)
    self.draw_path(gc, path, transform, rgbFace=color)
