comparison mplayer.c @ 8635:81dbd28ef7c0

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>
author arpi
date Sun, 29 Dec 2002 14:59:23 +0000
parents a8c4246b6869
children 0bfd73828e33
comparison
equal deleted inserted replaced
8634:a8c4246b6869 8635:81dbd28ef7c0
892 mp_msg_set_level(verbose+MSGL_STATUS); 892 mp_msg_set_level(verbose+MSGL_STATUS);
893 893
894 //------ load global data first ------ 894 //------ load global data first ------
895 895
896 #ifdef USE_OSD 896 #ifdef USE_OSD
897 #ifndef HAVE_FREETYPE
898 // check font 897 // check font
899 if(font_name){ 898 if(font_name){
900 vo_font=read_font_desc(font_name,font_factor,verbose>1); 899 vo_font=read_font_desc(font_name,font_factor,verbose>1);
901 if(!vo_font) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadFont,font_name); 900 if(!vo_font) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadFont,font_name);
902 } else { 901 } else {
903 // try default: 902 // try default:
904 vo_font=read_font_desc(get_path("font/font.desc"),font_factor,verbose>1); 903 vo_font=read_font_desc(get_path("font/font.desc"),font_factor,verbose>1);
905 if(!vo_font) 904 if(!vo_font)
906 vo_font=read_font_desc(DATADIR"/font/font.desc",font_factor,verbose>1); 905 vo_font=read_font_desc(DATADIR"/font/font.desc",font_factor,verbose>1);
907 } 906 }
908 #else 907 #ifdef HAVE_FREETYPE
909 init_freetype(); 908 if (!vo_font)
909 init_freetype();
910 #endif 910 #endif
911 #endif 911 #endif
912 vo_init_osd(); 912 vo_init_osd();
913 913
914 #ifdef HAVE_RTC 914 #ifdef HAVE_RTC