[vlc-commits] commit: Fontconfig: hardcode fonts path on Win32 (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Tue Apr 27 16:46:33 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 27 15:37:21 2010 +0200| [07e5aced3f8d067c348911baef41e7b685c4f51f] | committer: Jean-Baptiste Kempf
Fontconfig: hardcode fonts path on Win32
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=07e5aced3f8d067c348911baef41e7b685c4f51f
---
extras/contrib/src/Patches/fontconfig-noxml2.patch | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/extras/contrib/src/Patches/fontconfig-noxml2.patch b/extras/contrib/src/Patches/fontconfig-noxml2.patch
index ac7515b..6f7f6f5 100644
--- a/extras/contrib/src/Patches/fontconfig-noxml2.patch
+++ b/extras/contrib/src/Patches/fontconfig-noxml2.patch
@@ -88,3 +88,23 @@ diff -ruN fontconfig/src/fcxml.c fontconfig.new/src/fcxml.c
XML_Parser p;
FcChar8 *filename;
int fd;
+--- fontconfig/src/fcinit.c 2010-04-27 15:31:41.000000000 +0200
++++ fontconfig.new/src/fcinit.c 2010-04-27 15:35:42.000000000 +0200
+@@ -34,11 +34,16 @@
+ config = FcConfigCreate ();
+ if (!config)
+ goto bail0;
+- if (!FcConfigAddDir (config, (FcChar8 *) FC_DEFAULT_FONTS))
++ char *path = malloc( MAX_PATH + 1 );
++ GetWindowsDirectory( path, MAX_PATH + 1 );
++ strcat( path, "\\fonts" );
++// printf( "Fonts dir: %s\n", path );
++ if (!FcConfigAddDir (config, (FcChar8 *) path))
+ goto bail1;
+ char dir[MAX_PATH+5];
+ SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, dir );
+ strncat( dir, "\\vlc", 4 );
++// printf( "Cache dir: %s\n", dir );
+ if (!FcConfigAddCacheDir (config, (FcChar8 *)dir))
+ goto bail1;
+ return config;
More information about the vlc-commits
mailing list