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!).
This commit is contained in:
Jehan 2024-11-24 20:49:53 +09:00
parent b9f81e1c0f
commit 986736f57f

View file

@ -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);