From 6bf9237e5f467073021483cd06251955ef28c84f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 20 Jan 2023 11:54:08 -0700 Subject: [PATCH] [hb-info] Format --list-palettes --- util/hb-info.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util/hb-info.cc b/util/hb-info.cc index 5b389f2e2..3a6980943 100644 --- a/util/hb-info.cc +++ b/util/hb-info.cc @@ -896,7 +896,7 @@ struct info_t if (verbose) { printf ("\nPalettes:\n\n"); - printf ("Index Name Flags\n---------------------\n"); + printf ("Index Flags Name\n---------------------\n"); } unsigned count = hb_ot_color_palette_get_count (face); for (unsigned i = 0; i < count; i++) @@ -910,15 +910,15 @@ struct info_t language, &name_len, name); - printf ("%u %s ", i, name); + printf ("%u ", i); if (flags) { if (flags & HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_LIGHT_BACKGROUND) - printf ("Usable with light background,"); + printf ("Light"); if (flags & HB_OT_COLOR_PALETTE_FLAG_USABLE_WITH_DARK_BACKGROUND) - printf ("Usable with dark background,"); + printf ("Dark"); } - printf ("\n"); + printf ("%s\n", name); } }