[vlc-commits] freetype: harfbuzz needs to load fonts with codepoint

Francois Cartegnie git at videolan.org
Tue Jul 21 16:07:18 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jun 26 15:48:09 2020 +0200| [739095b7589ef022971c7681387ca92e96ad79f6] | committer: Francois Cartegnie

freetype: harfbuzz needs to load fonts with codepoint

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=739095b7589ef022971c7681387ca92e96ad79f6
---

 modules/text_renderer/freetype/text_layout.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/text_renderer/freetype/text_layout.c b/modules/text_renderer/freetype/text_layout.c
index 60d255017d..43a712f722 100644
--- a/modules/text_renderer/freetype/text_layout.c
+++ b/modules/text_renderer/freetype/text_layout.c
@@ -750,7 +750,8 @@ static int ShapeParagraphHarfBuzz( filter_t *p_filter,
         FT_Face p_face = 0;
         if( !p_run->p_face )
         {
-            p_face = SelectAndLoadFace( p_filter, p_style, 0 );
+            p_face = SelectAndLoadFace( p_filter, p_style,
+                                         p_paragraph->p_code_points[p_run->i_start_offset] );
             if( !p_face )
             {
                 p_face = p_sys->p_face;



More information about the vlc-commits mailing list