# HG changeset patch # User filon # Date 1041856059 0 # Node ID 477d42e66e8b95db41c78b8a0f542c5e2c4636d8 # Parent 499d64f880d318a59255fc2484cd9877afe603aa Update font scale after changing pancan. It makes fonts keep scale when they are set to be proportional to width. diff -r 499d64f880d3 -r 477d42e66e8b libvo/sub.c --- a/libvo/sub.c Mon Jan 06 12:23:59 2003 +0000 +++ b/libvo/sub.c Mon Jan 06 12:27:39 2003 +0000 @@ -534,7 +534,7 @@ #ifdef HAVE_FREETYPE // here is the right place to get screen dimensions - if (!vo_font && force_load_font) { + if (!vo_font || force_load_font) { force_load_font = 0; load_font_ft(dxs, dys); } diff -r 499d64f880d3 -r 477d42e66e8b mplayer.c --- a/mplayer.c Mon Jan 06 12:23:59 2003 +0000 +++ b/mplayer.c Mon Jan 06 12:27:39 2003 +0000 @@ -2561,6 +2561,11 @@ vo_osd_progbar_type=OSD_PANSCAN; vo_osd_progbar_value=vo_panscan*256; vo_osd_changed(OSDTYPE_PROGBAR); +#ifdef HAVE_FREETYPE + if (subtitle_autoscale == 2) + // force scaling font to movie width + force_load_font = 1; +#endif } #endif }