[ft] Do not deference ft_font if it is nullptr (#2502)
This commit is contained in:
parent
a373e16131
commit
2267da4ee0
|
@ -832,6 +832,10 @@ hb_ft_font_changed (hb_font_t *font)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
hb_ft_font_t *ft_font = (hb_ft_font_t *) font->user_data;
|
hb_ft_font_t *ft_font = (hb_ft_font_t *) font->user_data;
|
||||||
|
|
||||||
|
if (unlikely (!ft_font))
|
||||||
|
return;
|
||||||
|
|
||||||
FT_Face ft_face = ft_font->ft_face;
|
FT_Face ft_face = ft_font->ft_face;
|
||||||
|
|
||||||
hb_font_set_scale (font,
|
hb_font_set_scale (font,
|
||||||
|
|
Loading…
Reference in New Issue