From 40bf30bfeb5cda9a8e147313f7b3a7ba8f671275 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 15 Jan 2023 10:45:47 -0700 Subject: [PATCH] [util] Print named-instance index in --list-variations --- util/font-options.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/font-options.hh b/util/font-options.hh index 75a739475..9b0c2ab5d 100644 --- a/util/font-options.hh +++ b/util/font-options.hh @@ -227,7 +227,7 @@ _list_variations (hb_face_t *face) coords.resize (coords_count); hb_ot_var_named_instance_get_design_coords (face, i, &coords_count, coords.arrayZ); - printf ("%-32s", name); + printf ("%u. %-32s", i, name); for (unsigned j = 0; j < coords.length; j++) printf ("%g, ", (double) coords[j]); printf ("\n");