Add a workaround for glyph extents
When hint-metrics is != off, cairo produces broken glyph extents. To work around this problem, use a copy of the scaled font with hint-metrics forced off for obtaining glyph extents.
When hint-metrics is != off, cairo produces broken glyph extents. To work around this problem, use a copy of the scaled font with hint-metrics forced off for obtaining glyph extents.