Mercurial > mplayer.hg
diff libass/ass_render.c @ 23328:99ac5d381aed
Correct font size in libass.
Values from TrueType OS/2 table are used to reproduce VSFilter behaviour.
Magic 0.8 multiplier and scaling for the fractional part of font size are not
needed anymore.
author | eugeni |
---|---|
date | Sat, 19 May 2007 14:11:41 +0000 |
parents | bc9ec60e174d |
children | ffc2c7164bc0 |
line wrap: on
line diff
--- a/libass/ass_render.c Sat May 19 12:57:17 2007 +0000 +++ b/libass/ass_render.c Sat May 19 14:11:41 2007 +0000 @@ -506,8 +506,6 @@ return 0; } -double ass_internal_font_size_coeff = 0.8; - static void change_font_size(double sz) { double size = sz * frame_context.font_scale; @@ -2103,7 +2101,7 @@ ass_lazy_track_init(); - frame_context.font_scale = global_settings->font_size_coeff * ass_internal_font_size_coeff * + frame_context.font_scale = global_settings->font_size_coeff * frame_context.orig_height / frame_context.track->PlayResY; frame_context.border_scale = ((double)frame_context.orig_height) / frame_context.track->PlayResY;