Skip to content
Snippets Groups Projects
Commit 66e287ea authored by Salah-Eddin Shaban's avatar Salah-Eddin Shaban Committed by Jean-Baptiste Kempf
Browse files

Freetype: use FT_Glyph_Stroke to create outlines


FT_Glyph_Stroke is more tolerant of font files that do not follow
contour orientation conventions, like Helvetica Neue.
It also creates unfilled outline glyphs that can be more efficiently
blended.

Fixes #21043

(cherry picked from commit 074b4f3c)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9f7be9f1
No related branches found
No related tags found
No related merge requests found
......@@ -1060,8 +1060,8 @@ static int LoadGlyphs( filter_t *p_filter, paragraph_t *p_paragraph,
if( p_filter->p_sys->p_stroker && (p_style->i_style_flags & STYLE_OUTLINE) )
{
p_bitmaps->p_outline = p_bitmaps->p_glyph;
if( FT_Glyph_StrokeBorder( &p_bitmaps->p_outline,
p_filter->p_sys->p_stroker, 0, 0 ) )
if( FT_Glyph_Stroke( &p_bitmaps->p_outline,
p_filter->p_sys->p_stroker, 0 ) )
p_bitmaps->p_outline = 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment