1 diff -ruN fontconfig/src/fcxml.c fontconfig.new/src/fcxml.c
2 --- fontconfig/src/fcxml.c 2014-07-06 00:38:32.773443543 +0200
3 +++ fontconfig.new/src/fcxml.c 2014-07-05 21:11:51.171349523 +0200
20 FcExprDestroy (FcExpr *e);
28 FcExprCreateInteger (FcConfig *config, int i)
37 FcExprMatrixFreeShallow (FcExprMatrix *m)
44 FcExprCreateMatrix (FcConfig *config, const FcExprMatrix *matrix)
53 FcExprDestroy (FcExpr *e)
60 typedef enum _FcElement {
64 const FcChar8 *bs = *((FcChar8 **) b);
65 return FcStrCmp (as, bs);
70 FcConfigParseAndLoadDir (FcConfig *config,
83 return ret || !complain;
88 pfnGetSystemWindowsDirectory pGetSystemWindowsDirectory = NULL;
89 @@ -3067,7 +3080,10 @@
100 @@ -3210,3 +3226,4 @@
102 #include "fcaliastail.h"
105 --- fontconfig-2.12.1/src/fcinit.c.orig 2017-04-08 11:38:02.488354178 +0200
106 +++ fontconfig-2.12.1/src/fcinit.c 2017-04-08 11:38:52.072351969 +0200
110 FcConfigSetSysRoot (config, sysroot);
111 - if (!FcConfigAddDir (config, (FcChar8 *) FC_DEFAULT_FONTS))
112 + char path[MAX_PATH + 8];
113 + GetWindowsDirectory( path, MAX_PATH + 1 );
114 + strcat( path, "\\fonts" );
115 +// printf( "Fonts dir: %s\n", path );
116 + if (!FcConfigAddDir (config, (FcChar8 *) path))
118 char dir[MAX_PATH+5];
119 SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, dir );
120 strncat( dir, "\\vlc", 4 );
121 +// printf( "Cache dir: %s\n", dir );
122 if (!FcConfigAddCacheDir (config, (FcChar8 *)dir))
129 - FcConfigPathFini ();
130 +// FcConfigPathFini ();