diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index f74513cb9..0434c2f88 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -284,8 +284,8 @@ struct glyf_accelerator_t hmtx->get_side_bearing (gid); return is_vertical - ? ceilf (phantoms[glyf_impl::PHANTOM_TOP].y) - extents.y_bearing - : floorf (phantoms[glyf_impl::PHANTOM_LEFT].x); + ? roundf (phantoms[glyf_impl::PHANTOM_TOP].y) - extents.y_bearing + : roundf (phantoms[glyf_impl::PHANTOM_LEFT].x); } #endif