diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-29 14:59:23 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-29 14:59:23 +0000 |
commit | c8b0ddfe4e1570b83b815a3c9befced24e4d2875 (patch) | |
tree | d0e864e177b24d068bea47f15a911d16a252ddc3 /mplayer.c | |
parent | 7e26b6cc29c1f050f55152f0759cd2db276d107e (diff) | |
download | mpv-c8b0ddfe4e1570b83b815a3c9befced24e4d2875.tar.bz2 mpv-c8b0ddfe4e1570b83b815a3c9befced24e4d2875.tar.xz |
these patches let ,,oldstyle'' and freetype subtitle renderers live
together happily. if an oldstyle subtitle (font.desc) is found, it will
be used. otherwise mplayer will choose subfont.ttf, if freetype was
detected during ./configure.
(also you can use -font /path/to/font.desc and -font /path/to/foobar.ttf too)
patch-set by Wojtek Kaniewski <wojtekka@bydg.pdi.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8636 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -894,7 +894,6 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){ //------ load global data first ------ #ifdef USE_OSD -#ifndef HAVE_FREETYPE // check font if(font_name){ vo_font=read_font_desc(font_name,font_factor,verbose>1); @@ -905,8 +904,9 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){ if(!vo_font) vo_font=read_font_desc(DATADIR"/font/font.desc",font_factor,verbose>1); } -#else - init_freetype(); +#ifdef HAVE_FREETYPE + if (!vo_font) + init_freetype(); #endif #endif vo_init_osd(); |