GNOME Bugzilla – Bug 751178
GIMP doesn't load fonts from folders which path contains Cyrillic characters
Last modified: 2015-06-22 18:35:09 UTC
1. Create folder with Cyrillic name. For example, D:\Шрифты 2. Put some font files in this folder 3. Add this folder's path to GIMP Font Folders 4. Press "Refresh font list" in fonts dialog. Fonts from that folder should appear in list, but they don't. When adding folders with ASCII only names, all works fine. GIMP output in verbose mode doesn't contain any errors or warnings.
This bug also appears on nightly build of stable GIMP and the development versions of GEGL and BABL. http://nightly.darkrefraction.com/gimp/stable/gimp-stable-x86_64-2015-06-21.exe
the problem should be here: https://git.gnome.org/browse/gimp/tree/app/text/gimp-fonts.c#n154 we could try something like: https://git.gnome.org/browse/gimp/tree/libgimpbase/gimpmetadata.c#n527 because apparently, behind the scenes, fontconfig calls stat and IIRC that does not work with UTF8 encoded paths.
That looks like just the right solution, please go ahead.
I pushed this commit to gimp-2-8 and master. commit 9bb3da5ed5099566cc3e555859080f248dc0befe Author: Massimo Valentini <mvalentini@src.gnome.org> Date: Mon Jun 22 20:23:08 2015 +0200 Bug 751178: GIMP doesn't load fonts from folders... which path contains Cyrillic characters (cherry picked from commit f0028624df617c53e85229f36c0653eb7e078aa4) Conflicts: app/text/gimp-fonts.c I cross-compiled gimp-2-8 and it seems 'g_win32_locale_filename_from_utf8' declaration does not require any other header inclusion. Btw, despite the name, it seems it should work also for directories: https://git.gnome.org/browse/glib/tree/glib/ggettext.c#n78 I'm closing the bug hoping it works, in case it doesn't please reopen.