Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
4ae0ca4d
Commit
4ae0ca4d
authored
Aug 06, 2009
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: add error-output
parent
507bd586
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
modules/misc/freetype.c
modules/misc/freetype.c
+12
-0
No files found.
modules/misc/freetype.c
View file @
4ae0ca4d
...
...
@@ -381,7 +381,10 @@ static int Create( vlc_object_t *p_this )
fontpattern
=
FcPatternCreate
();
if
(
!
fontpattern
)
{
msg_Err
(
p_filter
,
"Creating fontpattern failed"
);
goto
error
;
}
#ifdef WIN32
if
(
p_dialog
)
...
...
@@ -392,7 +395,10 @@ static int Create( vlc_object_t *p_this )
free
(
psz_fontsize
);
if
(
FcConfigSubstitute
(
NULL
,
fontpattern
,
FcMatchPattern
)
==
FcFalse
)
{
msg_Err
(
p_filter
,
"FontSubstitute failed"
);
goto
error
;
}
FcDefaultSubstitute
(
fontpattern
);
#ifdef WIN32
...
...
@@ -404,12 +410,18 @@ static int Create( vlc_object_t *p_this )
* returns NULL or doesn't set to to Match on all Match cases.*/
fontmatch
=
FcFontMatch
(
NULL
,
fontpattern
,
&
fontresult
);
if
(
!
fontmatch
||
fontresult
==
FcResultNoMatch
)
{
msg_Err
(
p_filter
,
"Fontmatching failed"
);
goto
error
;
}
FcPatternGetString
(
fontmatch
,
FC_FILE
,
0
,
(
FcChar8
**
)
&
psz_fontfile
);
FcPatternGetInteger
(
fontmatch
,
FC_INDEX
,
0
,
&
fontindex
);
if
(
!
psz_fontfile
)
{
msg_Err
(
p_filter
,
"Failed to get fontfile"
);
goto
error
;
}
msg_Dbg
(
p_filter
,
"Using %s as font from file %s"
,
psz_fontfamily
,
psz_fontfile
);
p_sys
->
psz_fontfamily
=
strdup
(
psz_fontfamily
);
...
...
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