[vlc-commits] [Git][videolan/vlc][master] Freetype: use FT_Glyph_Stroke to create outlines

Jean-Baptiste Kempf gitlab at videolan.org
Wed May 26 08:24:04 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
074b4f3c by Salah-Eddin Shaban at 2021-05-25T18:39:09+00:00
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

- - - - -


1 changed file:

- modules/text_renderer/freetype/text_layout.c


Changes:

=====================================
modules/text_renderer/freetype/text_layout.c
=====================================
@@ -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;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/074b4f3c4adf21b574c4a5127bac18cf7e94d821

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/074b4f3c4adf21b574c4a5127bac18cf7e94d821
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list