Commit dacf900c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Freetype: allow to pass a font on WinRT

parent 6e8199aa
......@@ -71,7 +71,9 @@
/* Win32 */
#ifdef _WIN32
# undef HAVE_FONTCONFIG
# define HAVE_GET_FONT_BY_FAMILY_NAME
# if !VLC_WINSTORE_APP
# define HAVE_GET_FONT_BY_FAMILY_NAME
# endif
#endif
/* FontConfig */
......@@ -1949,7 +1951,7 @@ static int Create( vlc_object_t *p_this )
#if !TARGET_OS_IPHONE
p_sys->pf_select = MacLegacy_Select;
#endif
#elif defined( _WIN32 )
#elif defined( _WIN32 ) && defined( HAVE_GET_FONT_BY_FAMILY_NAME )
p_sys->pf_select = Win32_Select;
#else
p_sys->pf_select = Dummy_Select;
......
......@@ -418,7 +418,7 @@ char* Dummy_Select( filter_t *p_filter, const char* psz_font,
VLC_UNUSED(i_idx);
char *psz_fontname;
# ifdef _WIN32
# if defined( _WIN32 ) && !VLC_WINSTORE_APP
/* Get Windows Font folder */
char *psz_win_fonts_path = GetWindowsFontPath();
if( asprintf( &psz_fontname, "%s\\%s", psz_win_fonts_path, psz_font ) == -1 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment