Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
07e5aced
Commit
07e5aced
authored
Apr 27, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fontconfig: hardcode fonts path on Win32
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0af86a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
extras/contrib/src/Patches/fontconfig-noxml2.patch
extras/contrib/src/Patches/fontconfig-noxml2.patch
+20
-0
No files found.
extras/contrib/src/Patches/fontconfig-noxml2.patch
View file @
07e5aced
...
@@ -88,3 +88,23 @@ diff -ruN fontconfig/src/fcxml.c fontconfig.new/src/fcxml.c
...
@@ -88,3 +88,23 @@ diff -ruN fontconfig/src/fcxml.c fontconfig.new/src/fcxml.c
XML_Parser p;
XML_Parser p;
FcChar8 *filename;
FcChar8 *filename;
int fd;
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;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment