[hb-info] Format

This commit is contained in:
Behdad Esfahbod 2023-01-19 15:17:33 -07:00
parent d7cf69ede2
commit 9395bbaa67
1 changed files with 3 additions and 2 deletions

View File

@ -514,7 +514,7 @@ struct info_t
if (verbose && count) if (verbose && count)
{ {
printf ("Varitation axes:\n\n"); printf ("Varitation axes:\n\n");
printf ("Tag Minimum Default Maximum Name\n------------------------------------\n"); printf ("Tag Minimum Default Maximum Name\n------------------------------------\n");
} }
for (unsigned i = 0; i < count; i++) for (unsigned i = 0; i < count; i++)
{ {
@ -549,6 +549,7 @@ struct info_t
if (verbose) if (verbose)
{ {
printf ("\nNamed instances:\n\n"); printf ("\nNamed instances:\n\n");
printf ("Index Name Position\n------------------------------------------------\n");
} }
for (unsigned i = 0; i < count; i++) for (unsigned i = 0; i < count; i++)
@ -566,7 +567,7 @@ struct info_t
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); 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_count; j++) for (unsigned j = 0; j < coords_count; j++)
printf ("%g, ", (double) coords[j]); printf ("%g, ", (double) coords[j]);
printf ("\n"); printf ("\n");