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
8f419634
Commit
8f419634
authored
May 09, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: use add_loadfile when fontconfig|win32 is disabled
parent
a1a2d587
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/misc/text_renderer/freetype.c
modules/misc/text_renderer/freetype.c
+7
-7
No files found.
modules/misc/text_renderer/freetype.c
View file @
8f419634
...
...
@@ -43,16 +43,16 @@
/* Default fonts */
#ifdef __APPLE__
# define DEFAULT_FONT "/Library/Fonts/Arial Black.ttf"
# define DEFAULT_FONT
_FILE
"/Library/Fonts/Arial Black.ttf"
# define DEFAULT_FAMILY "Arial Black"
#elif defined( WIN32 )
# define DEFAULT_FONT "arial.ttf"
/* Default path font found at run-time */
# define DEFAULT_FONT
_FILE
"arial.ttf"
/* Default path font found at run-time */
# define DEFAULT_FAMILY "Arial"
#elif defined( HAVE_MAEMO )
# define DEFAULT_FONT "/usr/share/fonts/nokia/nosnb.ttf"
# define DEFAULT_FONT
_FILE
"/usr/share/fonts/nokia/nosnb.ttf"
# define DEFAULT_FAMILY "Nokia Sans Bold"
#else
# define DEFAULT_FONT "/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf"
# define DEFAULT_FONT
_FILE
"/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf"
# define DEFAULT_FAMILY "Serif Bold"
#endif
...
...
@@ -155,7 +155,7 @@ vlc_module_begin ()
#ifdef HAVE_STYLES
add_font
(
"freetype-font"
,
DEFAULT_FAMILY
,
FONT_TEXT
,
FAMILY_LONGTEXT
,
false
)
#else
add_
font
(
"freetype-font"
,
DEFAULT_FONT
,
FONT_TEXT
,
FONT_LONGTEXT
,
false
)
add_
loadfile
(
"freetype-font"
,
DEFAULT_FONT_FILE
,
FONT_TEXT
,
FONT_LONGTEXT
,
false
)
#endif
add_integer
(
"freetype-fontsize"
,
0
,
FONTSIZE_TEXT
,
...
...
@@ -357,10 +357,10 @@ static int Create( vlc_object_t *p_this )
psz_fontfamily
=
strdup
(
DEFAULT_FAMILY
);
#else
# ifdef WIN32
if
(
asprintf
(
&
psz_fontfamily
,
"%s%s"
,
p_sys
->
psz_win_fonts_path
,
DEFAULT_FONT
)
==
-
1
)
if
(
asprintf
(
&
psz_fontfamily
,
"%s%s"
,
p_sys
->
psz_win_fonts_path
,
DEFAULT_FONT
_FILE
)
==
-
1
)
goto
error
;
# else
psz_fontfamily
=
strdup
(
DEFAULT_FONT
);
psz_fontfamily
=
strdup
(
DEFAULT_FONT
_FILE
);
# endif
msg_Err
(
p_filter
,
"User specified an empty fontfile, using %s"
,
psz_fontfamily
);
#endif
...
...
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