From 986736f57f04d792f9f4ffd321c2d5a4464571cb Mon Sep 17 00:00:00 2001 From: Jehan Date: Sun, 24 Nov 2024 20:49:53 +0900 Subject: [PATCH] Issue #12433: do not show the unsupported fonts message on startup. It seems any installation will have a lot of them (mostly because of bitmap fonts which are now unsupported by Pango) and the message startles people who believe there is something broken with GIMP. Let's just not show this message on stable release builds, yet still keep it on stable development builds (and all unstable builds, even releases), because it is informative and keep us aware of this limitation (which we hope to someday get rid of, i.e. get back support of bitmap fonts, as well as any font format!). --- app/text/gimpfontfactory.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/text/gimpfontfactory.c b/app/text/gimpfontfactory.c index c7d0f6b98c..18dfca17cc 100644 --- a/app/text/gimpfontfactory.c +++ b/app/text/gimpfontfactory.c @@ -1014,10 +1014,12 @@ gimp_font_factory_load_names (GimpFontFactory *factory, if (n_ignored > 0) { - if (g_getenv ("GIMP_DEBUG_FONTS") == NULL) - g_printerr ("%s: %d unsupported fonts were ignored. Set the GIMP_DEBUG_FONTS environment variable for a listing.\n", G_STRFUNC, n_ignored); + if (g_getenv ("GIMP_DEBUG_FONTS") != NULL) + g_printerr ("%s: %d unsupported fonts were ignored: \n%s", G_STRFUNC, n_ignored, ignored_fonts->str); +#if defined (GIMP_UNSTABLE) || ! defined (GIMP_RELEASE) else - g_printerr ("%s: %d unsupported fonts were ignored: %s", G_STRFUNC, n_ignored, ignored_fonts->str); + g_printerr ("%s: %d unsupported fonts were ignored. Set the GIMP_DEBUG_FONTS environment variable for a listing.\n", G_STRFUNC, n_ignored); +#endif } g_string_free (ignored_fonts, TRUE);