def METHOD_NAME(self, aW, aH):
    if HAS_MATPLOTLIB:
        try:
            (width, height, descent, _, _,) = self.parser.parse(
                enclose(self.s), 72, prop=FontProperties(size=self.fontsize)
            )
            return width, height + descent
        except Exception as e:
            log.error(f"Math error in wrap: {e}")
            pass
    return 10, 10