From 6665881c7da58c32e243121809e154eeca33968c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 2 Jul 2022 11:21:12 -0600 Subject: [PATCH] [glyf] Change side-bearing rounding --- src/OT/glyf/glyf.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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