Mercurial > mplayer.hg
comparison mplayer.c @ 23338:2a66d95355f0
add new -subfont option, that allows having a different font for OSD (controls and menu) and subtitles
author | ben |
---|---|
date | Sun, 20 May 2007 16:10:45 +0000 |
parents | 30c61fe726bf |
children | 44746cbd4e5b |
comparison
equal
deleted
inserted
replaced
23337:10a7279b8e56 | 23338:2a66d95355f0 |
---|---|
320 // codec outfmt flags (defined in libmpcodecs/vd.c) | 320 // codec outfmt flags (defined in libmpcodecs/vd.c) |
321 extern int vo_flags; | 321 extern int vo_flags; |
322 | 322 |
323 // sub: | 323 // sub: |
324 char *font_name=NULL; | 324 char *font_name=NULL; |
325 char *sub_font_name=NULL; | |
325 #ifdef HAVE_FONTCONFIG | 326 #ifdef HAVE_FONTCONFIG |
326 extern int font_fontconfig; | 327 extern int font_fontconfig; |
327 #endif | 328 #endif |
328 float font_factor=0.75; | 329 float font_factor=0.75; |
329 char **sub_name=NULL; | 330 char **sub_name=NULL; |
2531 vo_font=read_font_desc( mem_ptr=get_path("font/font.desc"),font_factor,verbose>1); | 2532 vo_font=read_font_desc( mem_ptr=get_path("font/font.desc"),font_factor,verbose>1); |
2532 free(mem_ptr); // release the buffer created by get_path() | 2533 free(mem_ptr); // release the buffer created by get_path() |
2533 if(!vo_font) | 2534 if(!vo_font) |
2534 vo_font=read_font_desc(MPLAYER_DATADIR "/font/font.desc",font_factor,verbose>1); | 2535 vo_font=read_font_desc(MPLAYER_DATADIR "/font/font.desc",font_factor,verbose>1); |
2535 } | 2536 } |
2537 if (sub_font_name) | |
2538 sub_font = read_font_desc(sub_font_name, font_factor, verbose>1); | |
2539 else | |
2540 sub_font = vo_font; | |
2536 #endif | 2541 #endif |
2537 #ifdef HAVE_FONTCONFIG | 2542 #ifdef HAVE_FONTCONFIG |
2538 } | 2543 } |
2539 #endif | 2544 #endif |
2540 | 2545 |