[gimp] Bug 751178: GIMP doesn't load fonts from folders...
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 751178: GIMP doesn't load fonts from folders...
- Date: Mon, 22 Jun 2015 18:29:48 +0000 (UTC)
commit f0028624df617c53e85229f36c0653eb7e078aa4
Author: Massimo Valentini <mvalentini src gnome org>
Date: Mon Jun 22 19:39:21 2015 +0200
Bug 751178: GIMP doesn't load fonts from folders...
which path contains Cyrillic characters
app/text/gimp-fonts.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/text/gimp-fonts.c b/app/text/gimp-fonts.c
index 2d5c8e7..ee6e9f7 100644
--- a/app/text/gimp-fonts.c
+++ b/app/text/gimp-fonts.c
@@ -150,6 +150,12 @@ gimp_fonts_add_directories (FcConfig *config,
for (list = path; list; list = list->next)
{
gchar *dir = g_file_get_path (list->data);
+#ifdef G_OS_WIN32
+ gchar *tmp = g_win32_locale_filename_from_utf8 (dir);
+
+ g_free (dir);
+ dir = tmp;
+#endif
FcConfigAppFontAddDir (config, (const FcChar8 *) dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]