comparison Gui/interface.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 935764ebfb6a
children a88f827ec563
comparison
equal deleted inserted replaced
8634:a8c4246b6869 8635:81dbd28ef7c0
303 303
304 #if defined( USE_OSD ) || defined( USE_SUB ) 304 #if defined( USE_OSD ) || defined( USE_SUB )
305 void guiLoadFont( void ) 305 void guiLoadFont( void )
306 { 306 {
307 #ifdef HAVE_FREETYPE 307 #ifdef HAVE_FREETYPE
308 load_font(vo_image_width, vo_image_height); 308 load_font_ft(vo_image_width, vo_image_height);
309 #else 309 #else
310 if ( vo_font ) 310 if ( vo_font )
311 { 311 {
312 int i; 312 int i;
313 if ( vo_font->name ) free( vo_font->name ); 313 if ( vo_font->name ) free( vo_font->name );