1
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 21:07:29 +01:00

Skip glyphs with char code < 0x20.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21366 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2006-11-28 22:44:40 +00:00
parent 2dbaab9320
commit a4d33dbb47

View 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 );