summaryrefslogtreecommitdiff
path: root/pango/mini-xft/minixftinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/mini-xft/minixftinit.c')
-rw-r--r--pango/mini-xft/minixftinit.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/pango/mini-xft/minixftinit.c b/pango/mini-xft/minixftinit.c
index 9a995044..627e9ad1 100644
--- a/pango/mini-xft/minixftinit.c
+++ b/pango/mini-xft/minixftinit.c
@@ -23,6 +23,11 @@
*/
#include <stdlib.h>
+
+#ifdef _WIN32
+#include <stdio.h>
+#endif
+
#include "minixftint.h"
MiniXftFontSet *_MiniXftFontSet;
@@ -46,3 +51,23 @@ MiniXftInit (char *config)
}
return True;
}
+
+#ifdef _WIN32
+char *
+get_xft_default_path (void)
+{
+ static char *result = NULL;
+ extern char *pango_get_sysconf_subdirectory (void);
+ char *p;
+
+ if (result)
+ return result;
+
+ p = pango_get_sysconf_subdirectory ();
+ result = malloc (strlen (p) + 20);
+
+ sprintf (result, "%s\\..\\XftConfig", p);
+
+ return result;
+}
+#endif