[util] Fix build
This commit is contained in:
parent
8a6ecc5c89
commit
484831be3d
|
@ -267,14 +267,16 @@ _list_variations (hb_face_t *face)
|
||||||
&name_len, name);
|
&name_len, name);
|
||||||
|
|
||||||
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);
|
||||||
hb_vector_t<float> coords;
|
float* coords;
|
||||||
coords.resize (coords_count);
|
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.arrayZ);
|
||||||
|
|
||||||
printf ("%u. %-32s", i, name);
|
printf ("%u. %-32s", i, name);
|
||||||
for (unsigned j = 0; j < coords.length; j++)
|
for (unsigned j = 0; j < coords.length; j++)
|
||||||
printf ("%g, ", (double) coords[j]);
|
printf ("%g, ", (double) coords[j]);
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
|
|
||||||
|
free (coords);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue