Commit a1a22422 authored by Francois Cartegnie's avatar Francois Cartegnie

freetype: recompute font size before merging segments style

parent e225681c
......@@ -1011,6 +1011,9 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region_out,
if( !p_region_in )
return VLC_EGENERIC;
/* Reset the default fontsize in case screen metrics have changed */
p_filter->p_sys->p_style->i_font_size = GetFontSize( p_filter );
const text_style_t **pp_styles = NULL;
size_t i_text_length = 0;
uni_char_t *psz_text = SegmentsToTextAndStyles( p_filter, p_region_in->p_text, &i_text_length, &pp_styles );
......@@ -1019,9 +1022,6 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region_out,
return VLC_EGENERIC;
}
/* Reset the default fontsize in case screen metrics have changed */
p_filter->p_sys->p_style->i_font_size = GetFontSize( p_filter );
/* */
int rv = VLC_SUCCESS;
FT_BBox bbox;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment