[var] Fix the just introduced hb_font_set_var_coords_design storing bug
The memcpy call was using the current coords count which is zero initially so no copy at all. Sad that no test has caught it, should see why, will however with the upcoming style API tests.
This commit is contained in:
parent
5c1a023f67
commit
40166eb0e5
|
@ -1940,7 +1940,7 @@ hb_font_set_var_coords_design (hb_font_t *font,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (coords_length)
|
if (coords_length)
|
||||||
memcpy (design_coords, coords, font->num_coords * sizeof (font->design_coords[0]));
|
memcpy (design_coords, coords, coords_length * sizeof (font->design_coords[0]));
|
||||||
|
|
||||||
hb_ot_var_normalize_coords (font->face, coords_length, coords, normalized);
|
hb_ot_var_normalize_coords (font->face, coords_length, coords, normalized);
|
||||||
_hb_font_adopt_var_coords (font, normalized, design_coords, coords_length);
|
_hb_font_adopt_var_coords (font, normalized, design_coords, coords_length);
|
||||||
|
|
Loading…
Reference in New Issue