Commit 074b4f3c authored by Salah-Eddin Shaban's avatar Salah-Eddin Shaban Committed by Salah-Eddin Shaban
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

Fixes #21043
parent 141e07e1
......@@ -981,7 +981,7 @@ static int CreateOutlinedGlyph( FT_Glyph src, FT_Glyph *dest, void *priv )
filter_t *p_filter = priv;
filter_sys_t *p_sys = p_filter->p_sys;
if(FT_Glyph_StrokeBorder( &src, p_sys->p_stroker, 0, 0 ))
if(FT_Glyph_Stroke( &src, p_sys->p_stroker, 0 ))
return -1;
*dest = src;
return 0;
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