Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
51f7b23e
Commit
51f7b23e
authored
Apr 26, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: try to fix the fontconfig cache building bug on Win32
parent
c8209ec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
25 deletions
+8
-25
modules/misc/freetype.c
modules/misc/freetype.c
+8
-25
No files found.
modules/misc/freetype.c
View file @
51f7b23e
...
...
@@ -351,45 +351,28 @@ static int Create( vlc_object_t *p_this )
if
(
asprintf
(
&
psz_fontsize
,
"%d"
,
p_sys
->
i_default_font_size
)
==
-
1
)
goto
error
;
msg_Dbg
(
p_filter
,
"Building font databases."
);
mtime_t
t1
,
t2
;
t1
=
mdate
();
#ifdef WIN32
dialog_progress_bar_t
*
p_dialog
=
NULL
;
FcConfig
*
fcConfig
=
FcInitLoadConfig
();
if
(
!
FcConfigUptoDate
(
NULL
)
)
{
p_dialog
=
dialog_ProgressCreate
(
p_filter
,
p_dialog
=
dialog_ProgressCreate
(
p_filter
,
_
(
"Building font cache"
),
_
(
"Please wait while your font cache is rebuilt.
\n
"
"This should take less than a few minutes."
),
NULL
);
}
char
*
path
=
xmalloc
(
PATH_MAX
+
1
);
/* Fontconfig doesnt seem to know where windows fonts are with
* current contribs. So just tell default windows font directory
* is the place to search fonts
*/
GetWindowsDirectory
(
path
,
PATH_MAX
+
1
);
strcat
(
path
,
"
\\
fonts"
);
if
(
p_dialog
)
dialog_ProgressSet
(
p_dialog
,
NULL
,
0
.
4
);
FcConfigAppFontAddDir
(
NULL
,
path
);
free
(
path
);
if
(
p_dialog
)
dialog_ProgressSet
(
p_dialog
,
NULL
,
0
.
5
);
#endif
mtime_t
t1
,
t2
;
msg_Dbg
(
p_filter
,
"Building font database."
);
t1
=
mdate
();
FcConfigBuildFonts
(
NULL
);
FcConfigBuildFonts
(
fcConfig
);
t2
=
mdate
();
msg_Dbg
(
p_filter
,
"Finished building font database."
);
msg_Dbg
(
p_filter
,
"Took %ld microseconds"
,
(
long
)((
t2
-
t1
))
);
fontpattern
=
FcPatternCreate
();
if
(
!
fontpattern
)
{
msg_Err
(
p_filter
,
"Creating fontpattern failed"
);
...
...
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