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
e3fe060e
Commit
e3fe060e
authored
Oct 25, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: rework fontconfig selectors names
parent
6a91698d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+1
-1
modules/text_renderer/platform_fonts.c
modules/text_renderer/platform_fonts.c
+5
-2
modules/text_renderer/platform_fonts.h
modules/text_renderer/platform_fonts.h
+3
-4
No files found.
modules/text_renderer/freetype.c
View file @
e3fe060e
...
...
@@ -1263,7 +1263,7 @@ static int Create( vlc_object_t *p_this )
p_sys
->
pf_select
=
Generic_Select
;
p_sys
->
pf_get_family
=
FontConfig_GetFamily
;
p_sys
->
pf_get_fallbacks
=
FontConfig_GetFallbacks
;
FontConfig_
BuildCach
e
(
p_filter
);
FontConfig_
Prepar
e
(
p_filter
);
#elif defined( __APPLE__ )
#if !TARGET_OS_IPHONE
p_sys
->
pf_select
=
MacLegacy_Select
;
...
...
modules/text_renderer/platform_fonts.c
View file @
e3fe060e
...
...
@@ -569,7 +569,7 @@ char* Generic_Select( filter_t *p_filter, const char* psz_family,
}
#ifdef HAVE_FONTCONFIG
void
FontConfig_BuildCach
e
(
filter_t
*
p_filter
)
int
FontConfig_Prepar
e
(
filter_t
*
p_filter
)
{
/* */
msg_Dbg
(
p_filter
,
"Building font databases."
);
...
...
@@ -592,7 +592,9 @@ void FontConfig_BuildCache( filter_t *p_filter )
/* if( p_dialog )
dialog_ProgressSet( p_dialog, NULL, 0.5 ); */
FcConfigBuildFonts
(
fcConfig
);
if
(
FcConfigBuildFonts
(
fcConfig
)
==
FcFalse
)
return
VLC_ENOMEM
;
#if defined( __APPLE__ )
// By default, scan only the directory /System/Library/Fonts.
// So build the set of available fonts under another directories,
...
...
@@ -611,6 +613,7 @@ void FontConfig_BuildCache( filter_t *p_filter )
#endif
t2
=
mdate
();
msg_Dbg
(
p_filter
,
"Took %ld microseconds"
,
(
long
)((
t2
-
t1
))
);
return
VLC_SUCCESS
;
}
const
vlc_family_t
*
FontConfig_GetFamily
(
filter_t
*
p_filter
,
const
char
*
psz_family
)
...
...
modules/text_renderer/platform_fonts.h
View file @
e3fe060e
...
...
@@ -123,10 +123,10 @@ struct vlc_family_t
* PLATFORM SPECIFIC SELECTORS
**/
#ifdef HAVE_FONTCONFIG
const
vlc_family_t
*
FontConfig_GetFamily
(
filter_t
*
p_filter
,
const
char
*
psz_family
);
vlc_family_t
*
FontConfig_GetFallbacks
(
filter_t
*
p_filter
,
const
char
*
psz_family
,
uni_char_t
codepoint
);
void
FontConfig_BuildCache
(
filter_t
*
p_filter
);
const
vlc_family_t
*
FontConfig_GetFamily
(
filter_t
*
p_filter
,
const
char
*
psz_family
);
int
FontConfig_Prepare
(
filter_t
*
p_filter
);
#endif
#if defined( _WIN32 ) && !VLC_WINSTORE_APP
...
...
@@ -211,6 +211,7 @@ vlc_font_t *NewFont( char *psz_fontfile, int i_index,
* \param p_family the family to free [IN]
*/
void
FreeFamiliesAndFonts
(
vlc_family_t
*
p_family
);
/**
* Free families, but not the fonts associated.
*
...
...
@@ -218,7 +219,6 @@ void FreeFamiliesAndFonts( vlc_family_t *p_family );
*/
void
FreeFamilies
(
void
*
p_families
,
void
*
p_obj
);
/**
* Construct the default family list
*
...
...
@@ -245,5 +245,4 @@ char* ToLower( const char *psz_src );
int
ConvertToLiveSize
(
filter_t
*
p_filter
,
const
text_style_t
*
p_style
);
#endif //PLATFORM_FONTS_H
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