Skip to content
Snippets Groups Projects
Commit 1b8388a4 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed: Committed by Hugo Beauzée-Luyssen
Browse files

text_renderer: freetype: fix invalid codepoint


(cherry picked from commit ab0b7eb4)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 6faf9176
No related branches found
Tags 3.0.9.1
No related merge requests found
...@@ -959,7 +959,8 @@ static int LoadGlyphs( filter_t *p_filter, paragraph_t *p_paragraph, ...@@ -959,7 +959,8 @@ static int LoadGlyphs( filter_t *p_filter, paragraph_t *p_paragraph,
FT_Face p_face = 0; FT_Face p_face = 0;
if( !p_run->p_face ) 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 ) if( !p_face )
{ {
/* Uses the default font and style */ /* Uses the default font and style */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment