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
e1dce21e
Commit
e1dce21e
authored
Sep 09, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: Use the style also for the mono font
parent
d2e1ceb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+2
-4
No files found.
modules/text_renderer/freetype.c
View file @
e1dce21e
...
@@ -332,7 +332,6 @@ struct filter_sys_t
...
@@ -332,7 +332,6 @@ struct filter_sys_t
float
f_shadow_vector_x
;
float
f_shadow_vector_x
;
float
f_shadow_vector_y
;
float
f_shadow_vector_y
;
int
i_default_font_size
;
int
i_default_font_size
;
char
*
psz_monofontfamily
;
/* Attachments */
/* Attachments */
input_attachment_t
**
pp_font_attachments
;
input_attachment_t
**
pp_font_attachments
;
...
@@ -1327,7 +1326,7 @@ static int ProcessNodes( filter_t *p_filter,
...
@@ -1327,7 +1326,7 @@ static int ProcessNodes( filter_t *p_filter,
if
(
!
strcasecmp
(
"font"
,
node
)
)
if
(
!
strcasecmp
(
"font"
,
node
)
)
HandleFontAttributes
(
p_xml_reader
,
&
p_fonts
);
HandleFontAttributes
(
p_xml_reader
,
&
p_fonts
);
else
if
(
!
strcasecmp
(
"tt"
,
node
)
)
else
if
(
!
strcasecmp
(
"tt"
,
node
)
)
HandleTT
(
&
p_fonts
,
p_sys
->
psz_monofontfamily
);
HandleTT
(
&
p_fonts
,
p_sys
->
style
.
psz_monofontname
);
else
if
(
!
strcasecmp
(
"b"
,
node
)
)
else
if
(
!
strcasecmp
(
"b"
,
node
)
)
i_style_flags
|=
STYLE_BOLD
;
i_style_flags
|=
STYLE_BOLD
;
else
if
(
!
strcasecmp
(
"i"
,
node
)
)
else
if
(
!
strcasecmp
(
"i"
,
node
)
)
...
@@ -2402,7 +2401,7 @@ static int Create( vlc_object_t *p_this )
...
@@ -2402,7 +2401,7 @@ static int Create( vlc_object_t *p_this )
psz_fontfile
=
psz_fontname
;
psz_fontfile
=
psz_fontname
;
psz_monofontfile
=
psz_monofontfamily
;
psz_monofontfile
=
psz_monofontfamily
;
#endif
#endif
p_sys
->
psz_monofontfamily
=
psz_monofontfamily
;
p_sys
->
style
.
psz_monofontname
=
psz_monofontfamily
;
/* */
/* */
i_error
=
FT_Init_FreeType
(
&
p_sys
->
p_library
);
i_error
=
FT_Init_FreeType
(
&
p_sys
->
p_library
);
...
@@ -2493,7 +2492,6 @@ static void Destroy( vlc_object_t *p_this )
...
@@ -2493,7 +2492,6 @@ static void Destroy( vlc_object_t *p_this )
if
(
p_sys
->
p_xml
)
xml_ReaderDelete
(
p_sys
->
p_xml
);
if
(
p_sys
->
p_xml
)
xml_ReaderDelete
(
p_sys
->
p_xml
);
free
(
p_sys
->
style
.
psz_fontname
);
free
(
p_sys
->
style
.
psz_fontname
);
free
(
p_sys
->
psz_monofontfamily
);
#ifdef _WIN32
#ifdef _WIN32
free
(
p_sys
->
psz_win_fonts_path
);
free
(
p_sys
->
psz_win_fonts_path
);
...
...
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