mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[hb-view] Use envvar HB_CHAFA=0 to disable Chafa output
This commit is contained in:
1 parent
76e6feb77f
commit
2da36cf99a
1 file changed
+5
-1
@@ -195,7 +195,11 @@ helper_cairo_surface_write_to_ansi_stream (cairo_surface_t *surface,
|
||||
if (width && height)
|
||||
{
|
||||
#ifdef HAVE_CHAFA
|
||||
if (true)
|
||||
const char *env = getenv ("HB_CHAFA");
|
||||
bool chafa = true;
|
||||
if (env)
|
||||
chafa = atoi (env);
|
||||
if (chafa)
|
||||
chafa_print_image_rgb24 (data, width, height, stride);
|
||||
else
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user