From 2cfd4133fb7e42237fbe47f09e448285fdbd1975 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 20 Jan 2023 07:11:16 -0700 Subject: [PATCH] [hb-info] Print Zyyy for DFLT script --- util/hb-info.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/util/hb-info.cc b/util/hb-info.cc index 9fe5b28eb..2df4748bb 100644 --- a/util/hb-info.cc +++ b/util/hb-info.cc @@ -476,8 +476,13 @@ struct info_t { printf (" "); if (verbose) printf ("Script: "); + + hb_tag_t hb_sc = hb_script_to_iso15924_tag (hb_ot_tag_to_script (script_array[script_index])); + if (script_array[script_index] == HB_TAG ('D','F','L','T')) + hb_sc = HB_SCRIPT_COMMON; + printf ("%c%c%c%c (%c%c%c%c)\n", - HB_UNTAG (hb_script_to_iso15924_tag (hb_ot_tag_to_script (script_array[script_index]))), + HB_UNTAG (hb_sc), HB_UNTAG (script_array[script_index])); hb_tag_t language_array[32];