Commit 3707a256 authored by Felix Paul Kühne's avatar Felix Paul Kühne

ass: auto-detect font-provider

parent 48a867c7
...@@ -226,7 +226,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -226,7 +226,7 @@ static int Create( vlc_object_t *p_this )
_( "Please wait while your font cache is rebuilt.\n" _( "Please wait while your font cache is rebuilt.\n"
"This should take less than a minute." ), NULL ); "This should take less than a minute." ), NULL );
#endif #endif
ass_set_fonts( p_renderer, psz_font, psz_family, true, NULL, 1 ); // setup default font/family ass_set_fonts( p_renderer, psz_font, psz_family, 1, NULL, 1 ); // setup default font/family
#if defined(_WIN32) || defined(__APPLE__) #if defined(_WIN32) || defined(__APPLE__)
if( p_dialog ) if( p_dialog )
{ {
...@@ -236,7 +236,7 @@ static int Create( vlc_object_t *p_this ) ...@@ -236,7 +236,7 @@ static int Create( vlc_object_t *p_this )
#endif #endif
#else #else
/* FIXME you HAVE to give him a font if no fontconfig */ /* FIXME you HAVE to give him a font if no fontconfig */
ass_set_fonts( p_renderer, psz_font, psz_family, false, NULL, 1 ); ass_set_fonts( p_renderer, psz_font, psz_family, 1, NULL, 1 );
#endif #endif
/* Add a track */ /* Add a track */
......
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