[ft] Fix rounding of normalized coords

According to spec...
https://learn.microsoft.com/en-us/typography/opentype/spec/otvaroverview#coordinate-scales-and-normalization
This commit is contained in:
Behdad Esfahbod committed 2025-03-02 17:00:17 -07:00
1 parent 3caf3b2f0d
commit feb899bb93
1 file changed
+1 -1
+1 -1
View File
@@ -1422,7 +1422,7 @@ hb_ft_font_changed (hb_font_t *font)
for (unsigned int i = 0; i < mm_var->num_axis; ++i)
{
coords[i] = ft_coords[i] >>= 2;
coords[i] = (ft_coords[i] + 2) >> 2;
nonzero = nonzero || coords[i];
}