[glyf] Change side-bearing rounding

This commit is contained in:
Behdad Esfahbod 2022-07-02 11:21:12 -06:00
parent 0a295fcde6
commit 6665881c7d
1 changed files with 2 additions and 2 deletions

View File

@ -284,8 +284,8 @@ struct glyf_accelerator_t
hmtx->get_side_bearing (gid); hmtx->get_side_bearing (gid);
return is_vertical return is_vertical
? ceilf (phantoms[glyf_impl::PHANTOM_TOP].y) - extents.y_bearing ? roundf (phantoms[glyf_impl::PHANTOM_TOP].y) - extents.y_bearing
: floorf (phantoms[glyf_impl::PHANTOM_LEFT].x); : roundf (phantoms[glyf_impl::PHANTOM_LEFT].x);
} }
#endif #endif