[vlc-devel] [PATCH] FreeType: fix the rendering of a single caracter
Adrien Maglo
magsoft at videolan.org
Fri Sep 8 15:35:31 CEST 2017
---
modules/text_renderer/freetype/text_layout.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/text_renderer/freetype/text_layout.c b/modules/text_renderer/freetype/text_layout.c
index e25ff1f844..7dd8dd4e37 100644
--- a/modules/text_renderer/freetype/text_layout.c
+++ b/modules/text_renderer/freetype/text_layout.c
@@ -1418,9 +1418,9 @@ static int LayoutParagraph( filter_t *p_filter, paragraph_t *p_paragraph,
const run_desc_t *p_run = &p_paragraph->p_runs[p_paragraph->pi_run_ids[i]];
const int i_advance_x = p_paragraph->p_glyph_bitmaps[ i ].i_x_advance;
- if( ( i_last_space_width + i_advance_x >= i_preferred_width &&
+ if( ( i_last_space_width + i_advance_x > i_preferred_width &&
p_run->p_style->e_wrapinfo == STYLE_WRAP_DEFAULT )
- || i_width + i_advance_x >= i_max_width )
+ || i_width + i_advance_x > i_max_width )
{
if( i_line_start == i )
{
--
2.11.0
More information about the vlc-devel
mailing list