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
fd07f90e
Commit
fd07f90e
authored
Oct 22, 2015
by
Salah-Eddin Shaban
Committed by
Jean-Baptiste Kempf
Oct 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: font fallback for Windows
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
195da069
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
279 additions
and
77 deletions
+279
-77
modules/text_renderer/Makefile.am
modules/text_renderer/Makefile.am
+1
-1
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+7
-1
modules/text_renderer/platform_fonts.c
modules/text_renderer/platform_fonts.c
+260
-72
modules/text_renderer/platform_fonts.h
modules/text_renderer/platform_fonts.h
+3
-3
modules/text_renderer/text_layout.c
modules/text_renderer/text_layout.c
+8
-0
No files found.
modules/text_renderer/Makefile.am
View file @
fd07f90e
...
...
@@ -62,7 +62,7 @@ libwin32text_plugin_la_LIBADD = -lgdi32
if
HAVE_WIN32
libfreetype_plugin_la_LIBADD
+=
-liconv
-lz
if
!HAVE_WINSTORE
libfreetype_plugin_la_LIBADD
+=
-lgdi32
libfreetype_plugin_la_LIBADD
+=
-lgdi32
-lusp10
text_LTLIBRARIES
+=
libwin32text_plugin.la
endif
endif
modules/text_renderer/freetype.c
View file @
fd07f90e
...
...
@@ -1273,7 +1273,13 @@ static int Create( vlc_object_t *p_this )
p_sys
->
pf_select
=
MacLegacy_Select
;
#endif
#elif defined( _WIN32 ) && defined( HAVE_GET_FONT_BY_FAMILY_NAME )
p_sys
->
pf_select
=
Win32_Select
;
const
char
*
const
ppsz_win32_default
[]
=
{
"Tahoma"
,
"FangSong"
,
"SimHei"
,
"KaiTi"
};
p_sys
->
pf_get_family
=
Win32_GetFamily
;
p_sys
->
pf_get_fallbacks
=
Win32_GetFallbacks
;
p_sys
->
pf_select
=
Generic_Select
;
InitDefaultList
(
p_filter
,
ppsz_win32_default
,
sizeof
(
ppsz_win32_default
)
/
sizeof
(
*
ppsz_win32_default
)
);
#elif defined( __ANDROID__ )
p_sys
->
pf_get_family
=
Android_GetFamily
;
p_sys
->
pf_get_fallbacks
=
Android_GetFallbacks
;
...
...
modules/text_renderer/platform_fonts.c
View file @
fd07f90e
This diff is collapsed.
Click to expand it.
modules/text_renderer/platform_fonts.h
View file @
fd07f90e
...
...
@@ -127,10 +127,10 @@ void FontConfig_BuildCache( filter_t *p_filter );
#endif
#if defined( _WIN32 ) && !VLC_WINSTORE_APP
char
*
Win32_Select
(
filter_t
*
p_filter
,
const
char
*
family
,
bool
b_bold
,
bool
b_italic
,
int
*
i_idx
,
uni_char_t
codepoint
);
vlc_family_t
*
Win32_GetFallbacks
(
filter_t
*
p_filter
,
const
char
*
psz_family
,
uni_char_t
codepoint
);
const
vlc_family_t
*
Win32_GetFamily
(
filter_t
*
p_filter
,
const
char
*
psz_family
);
#endif
/* _WIN32 */
#ifdef __APPLE__
...
...
modules/text_renderer/text_layout.c
View file @
fd07f90e
...
...
@@ -58,6 +58,14 @@
#include "text_layout.h"
#include "freetype.h"
/* Win32 */
#ifdef _WIN32
# undef HAVE_FONTCONFIG
# if !VLC_WINSTORE_APP
# define HAVE_FONT_FALLBACK
# endif
#endif
/* FontConfig */
#ifdef HAVE_FONTCONFIG
# define HAVE_FONT_FALLBACK
...
...
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