Commit 1b8388a4 authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Hugo Beauzée-Luyssen
Browse files

text_renderer: freetype: fix invalid codepoint

(cherry picked from commit ab0b7eb4

)
Signed-off-by: Hugo Beauzée-Luyssen's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 6faf9176
......@@ -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 */
......
Supports Markdown
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