diff --git a/util/hb-info.cc b/util/hb-info.cc index 02b55c710..f7cc4e6e3 100644 --- a/util/hb-info.cc +++ b/util/hb-info.cc @@ -1323,7 +1323,9 @@ struct info_t : } #ifdef HAVE_CHAFA - if (verbose && isatty (fileno (stdout))) + char *chafa_env = getenv ("HB_CHAFA"); + bool use_chafa = !chafa_env || atoi (chafa_env); + if (verbose && use_chafa && isatty (fileno (stdout))) { GString *chafa_str = _palette_chafa_str (i); printf ("%u %s %-23s %*s\n", i, type, name,