[glyf] Change side-bearing rounding

pull/3707/head
Behdad Esfahbod 2 years ago
parent 0a295fcde6
commit 6665881c7d
  1. 4
      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

Loading…
Cancel
Save