[vlc-commits] text_renderer: freetype: fix invalid codepoint
Francois Cartegnie
git at videolan.org
Fri Feb 16 19:38:13 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb 16 13:40:08 2018 +0100| [ab0b7eb466ffa6edc531418f71b01e9f020bc840] | committer: Francois Cartegnie
text_renderer: freetype: fix invalid codepoint
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab0b7eb466ffa6edc531418f71b01e9f020bc840
---
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 29a7a92d80..1728211c78 100644
--- a/modules/text_renderer/freetype/text_layout.c
+++ b/modules/text_renderer/freetype/text_layout.c
@@ -934,7 +934,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