]> granicus.if.org Git - libass/blobdiff - libass/ass_font.c
Skip glyphs with char code < 0x20.
[libass] / libass / ass_font.c
index 6c61c69cefc4e0e85ac2bfa8d8762db2f02711e6..3120db04f29b118ab56c702c3ef98d69eb4b7a10 100644 (file)
@@ -123,6 +123,9 @@ FT_Glyph ass_font_get_glyph(void* fontconfig_priv, ass_font_t* font, uint32_t ch
        int error;
        int index;
        FT_Glyph glyph;
+
+       if (ch < 0x20)
+               return 0;
        
        index = FT_Get_Char_Index(font->face, ch);
        error = FT_Load_Glyph(font->face, index, FT_LOAD_NO_BITMAP );