Mercurial > mplayer.hg
comparison libass/ass_font.c @ 21350:5337cdeec169
Skip glyphs with char code < 0x20.
author | eugeni |
---|---|
date | Tue, 28 Nov 2006 22:44:40 +0000 |
parents | 11679d93c7d8 |
children | c611dfc4cb85 |
comparison
equal
deleted
inserted
replaced
21349:11679d93c7d8 | 21350:5337cdeec169 |
---|---|
121 FT_Glyph ass_font_get_glyph(void* fontconfig_priv, ass_font_t* font, uint32_t ch) | 121 FT_Glyph ass_font_get_glyph(void* fontconfig_priv, ass_font_t* font, uint32_t ch) |
122 { | 122 { |
123 int error; | 123 int error; |
124 int index; | 124 int index; |
125 FT_Glyph glyph; | 125 FT_Glyph glyph; |
126 | |
127 if (ch < 0x20) | |
128 return 0; | |
126 | 129 |
127 index = FT_Get_Char_Index(font->face, ch); | 130 index = FT_Get_Char_Index(font->face, ch); |
128 error = FT_Load_Glyph(font->face, index, FT_LOAD_NO_BITMAP ); | 131 error = FT_Load_Glyph(font->face, index, FT_LOAD_NO_BITMAP ); |
129 if (error) { | 132 if (error) { |
130 mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorLoadingGlyph); | 133 mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorLoadingGlyph); |