[vlc-devel] commit: libass: Set Arial as the default family. (Derk-Jan Hartman )

git version control git at videolan.org
Sat Aug 9 00:13:36 CEST 2008


vlc | branch: 0.9.0-libass | Derk-Jan Hartman <hartman at videolan.org> | Fri Aug  8 23:54:18 2008 +0200| [e713ca1d76c873bbf5126c25fa8c3492368ab924] | committer: Derk-Jan Hartman 

libass: Set Arial as the default family.

This is a fallback option in case we cannot find a match. We don't set a default actual font, since we do not ship one with VLC. We can set one per platform, but I don't think it is worth the trouble.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e713ca1d76c873bbf5126c25fa8c3492368ab924
---

 modules/codec/libass.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/libass.c b/modules/codec/libass.c
index f810295..02d58a3 100644
--- a/modules/codec/libass.c
+++ b/modules/codec/libass.c
@@ -719,8 +719,8 @@ static ass_handle_t *AssHandleYield( decoder_t *p_dec )
     ass_set_font_scale( p_renderer, 1.0 );
     ass_set_line_spacing( p_renderer, 0.0 );
 
-    const char *psz_font = "";//"/usr/src/videolan/vlc-libass.git/share/skins2/fonts/FreeSans.ttf"; // FIXME
-    const char *psz_family = "";//"Arial"; // FIXME
+    const char *psz_font = NULL; /* We don't ship a default font with VLC */
+    const char *psz_family = "Arial"; /* Use Arial if we can't find anything more suitable */
 #ifdef HAVE_FONTCONFIG
     ass_set_fonts( p_renderer, psz_font, psz_family );  // setup default font/family
 #else




More information about the vlc-devel mailing list