diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-12-08 12:14:32 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-12-08 12:14:32 +0000 |
commit | e7d9078afcad18cae14e4653b1e945926471fbac (patch) | |
tree | bcc99f41030e05c9110aeb24e63aa27dbf76b188 /mencoder.c | |
parent | a6bd35c9a2d7618b5d9eeb17751e1fd8fddf04bf (diff) | |
download | mpv-e7d9078afcad18cae14e4653b1e945926471fbac.tar.bz2 mpv-e7d9078afcad18cae14e4653b1e945926471fbac.tar.xz |
Fontconfig support based on patch by Arwed von Merkatz <v.merkatz@gmx.net>, but slightly reworked
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11581 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r-- | mencoder.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mencoder.c b/mencoder.c index 5b5035aab3..82f8e3b227 100644 --- a/mencoder.c +++ b/mencoder.c @@ -175,6 +175,9 @@ static int play_n_frames_mf=-1; // sub: char *font_name=NULL; +#ifdef HAVE_FONTCONFIG +int font_fontconfig=0; +#endif float font_factor=0.75; char **sub_name=NULL; float sub_delay=0; @@ -443,7 +446,11 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){ #ifdef USE_OSD #ifdef HAVE_FREETYPE init_freetype(); -#else +#endif +#ifdef HAVE_FONTCONFIG + if(!font_fontconfig) + { +#endif if(font_name){ vo_font=read_font_desc(font_name,font_factor,verbose>1); if(!vo_font) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadFont,font_name); @@ -453,6 +460,8 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){ if(!vo_font) vo_font=read_font_desc(MPLAYER_DATADIR "/font/font.desc",font_factor,verbose>1); } +#ifdef HAVE_FONTCONFIG + } #endif #endif |