def __getattr__(self, key):
        if key in dir(self):
            return units_to_double(
                getattr(pango, 'pango_font_metrics_get_' + key)(self.metrics))
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/text.py/FontMetrics.__getattr__/original