Fix really

This commit is contained in:
Behdad Esfahbod 2023-01-15 16:15:52 -07:00
parent 484831be3d
commit 3d5a922bca
1 changed files with 2 additions and 2 deletions

View File

@ -269,10 +269,10 @@ _list_variations (hb_face_t *face)
unsigned coords_count = hb_ot_var_named_instance_get_design_coords (face, i, nullptr, nullptr); unsigned coords_count = hb_ot_var_named_instance_get_design_coords (face, i, nullptr, nullptr);
float* coords; float* coords;
coords = (float *) calloc (coords_count, sizeof (float)); coords = (float *) calloc (coords_count, sizeof (float));
hb_ot_var_named_instance_get_design_coords (face, i, &coords_count, coords.arrayZ); hb_ot_var_named_instance_get_design_coords (face, i, &coords_count, coords);
printf ("%u. %-32s", i, name); printf ("%u. %-32s", i, name);
for (unsigned j = 0; j < coords.length; j++) for (unsigned j = 0; j < coords_count; j++)
printf ("%g, ", (double) coords[j]); printf ("%g, ", (double) coords[j]);
printf ("\n"); printf ("\n");