[vlc-commits] text_renderer: freetype: fix invalid codepoint
Francois Cartegnie
git at videolan.org
Wed Apr 8 13:39:44 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb 16 13:40:08 2018 +0100| [1b8388a429bec9651e1fb16a1890a41fee4ae64c] | committer: Hugo Beauzée-Luyssen
text_renderer: freetype: fix invalid codepoint
(cherry picked from commit ab0b7eb466ffa6edc531418f71b01e9f020bc840)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1b8388a429bec9651e1fb16a1890a41fee4ae64c
---
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 5e8eae509a..239a9fa988 100644
--- a/modules/text_renderer/freetype/text_layout.c
+++ b/modules/text_renderer/freetype/text_layout.c
@@ -959,7 +959,8 @@ static int LoadGlyphs( filter_t *p_filter, paragraph_t *p_paragraph,
FT_Face p_face = 0;
if( !p_run->p_face )
{
- p_face = SelectAndLoadFace( p_filter, p_style, p_paragraph->p_code_points );
+ p_face = SelectAndLoadFace( p_filter, p_style,
+ p_paragraph->p_code_points[p_run->i_start_offset] );
if( !p_face )
{
/* Uses the default font and style */
More information about the vlc-commits
mailing list