[font] Centralize glyph-extents scaling
Needs more testing...
Some rounding was removed, namely in cff1 and cff2.
diff --git a/src/hb-font.hh b/src/hb-font.hh
index 6942d99..4e4a987 100644
--- a/src/hb-font.hh
+++ b/src/hb-font.hh
@@ -179,6 +179,14 @@
*y = parent_scale_y_position (*y);
}
+ void scale_glyph_extents (hb_glyph_extents_t *extents)
+ {
+ extents->x_bearing = em_scale_x (extents->x_bearing);
+ extents->y_bearing = em_scale_x (extents->y_bearing);
+ extents->width = em_scale_x (extents->width);
+ extents->height = em_scale_x (extents->height);
+ }
+
/* Public getters */