Commit ebbfe66d authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

libass: ass_set_fonts_dir() is for a "private" storage place for fonts in case...

libass: ass_set_fonts_dir() is for a "private" storage place for fonts in case any of them need to be extracted.

Since we support fontconfig fontlookup on windows/mac/*nix there should be no real need to actually use this directory, but we still need to set one.
parent d9ec65d5
......@@ -698,15 +698,12 @@ static ass_handle_t *AssHandleYield( decoder_t *p_dec )
}
free( pp_attachments );
#ifdef __APPLE__
char * psz_font_dir;
if( asprintf( &psz_font_dir, "%s/Library/Fonts", config_GetHomeDir() ) != -1 ) {
char *psz_font_dir = config_GetCacheDir();
if( !psz_font_dir )
goto error;
ass_set_fonts_dir( p_library, psz_font_dir );
free( psz_font_dir );
}
#else
ass_set_fonts_dir( p_library, "/usr/share/fonts" ); // FIXME
#endif
ass_set_extract_fonts( p_library, true );
ass_set_style_overrides( p_library, NULL );
......
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