

def get_dimensions(self, shape):
    cr = self.setup_cr(shape)
    cr.set_font_from_shape(shape)
    return cr.text_extents(shape.text)

dataset/ETHPy150Open ejeschke/ginga/ginga/cvw/CanvasRenderCv.py CanvasRenderer.get_dimensions/original