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
375f89a5
Commit
375f89a5
authored
Jan 27, 2014
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: fix crash is no monotype font name was set
parent
987349d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+11
-0
No files found.
modules/text_renderer/freetype.c
View file @
375f89a5
...
...
@@ -1927,6 +1927,17 @@ static int Create( vlc_object_t *p_this )
#endif
}
/* set default psz_monofontname */
if
(
!
psz_monofontfamily
||
!*
psz_monofontfamily
)
{
free
(
psz_monofontfamily
);
#ifdef HAVE_GET_FONT_BY_FAMILY_NAME
psz_monofontfamily
=
strdup
(
DEFAULT_MONOSPACE_FAMILY
);
#else
psz_monofontfamily
=
File_Select
(
DEFAULT_MONOSPACE_FONT_FILE
);
#endif
}
/* Set the current font file */
p_sys
->
style
.
psz_fontname
=
psz_fontname
;
p_sys
->
style
.
psz_monofontname
=
psz_monofontfamily
;
...
...
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