diff options
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_font.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libass/ass_font.c b/libass/ass_font.c index 3ae6d716e5..37bec8b50e 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -295,12 +295,12 @@ FT_Glyph ass_font_get_glyph(void* fontconfig_priv, ass_font_t* font, uint32_t ch ch, font->desc.family, font->desc.bold, font->desc.italic); face_idx = add_face(fontconfig_priv, font, ch); if (face_idx >= 0) { - face = font->faces[face_idx]; - index = FT_Get_Char_Index(face, ch); - if (index == 0) { - mp_msg(MSGT_ASS, MSGL_ERR, MSGTR_LIBASS_GlyphNotFound, - ch, font->desc.family, font->desc.bold, font->desc.italic); - } + face = font->faces[face_idx]; + index = FT_Get_Char_Index(face, ch); + if (index == 0) { + mp_msg(MSGT_ASS, MSGL_ERR, MSGTR_LIBASS_GlyphNotFound, + ch, font->desc.family, font->desc.bold, font->desc.italic); + } } } #endif |