mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[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:
1 parent
3caf3b2f0d
commit
feb899bb93
1 file changed
+1
-1
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user