summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index cfc22415e5..df7dd17d10 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -322,6 +322,7 @@ extern int vo_flags;
// sub:
char *font_name=NULL;
+char *sub_font_name=NULL;
#ifdef HAVE_FONTCONFIG
extern int font_fontconfig;
#endif
@@ -2533,6 +2534,10 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){
if(!vo_font)
vo_font=read_font_desc(MPLAYER_DATADIR "/font/font.desc",font_factor,verbose>1);
}
+ if (sub_font_name)
+ sub_font = read_font_desc(sub_font_name, font_factor, verbose>1);
+ else
+ sub_font = vo_font;
#endif
#ifdef HAVE_FONTCONFIG
}