Mercurial > mplayer.hg
changeset 21350:5337cdeec169
Skip glyphs with char code < 0x20.
author | eugeni |
---|---|
date | Tue, 28 Nov 2006 22:44:40 +0000 |
parents | 11679d93c7d8 |
children | c611dfc4cb85 |
files | libass/ass_font.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_font.c Tue Nov 28 22:20:24 2006 +0000 +++ b/libass/ass_font.c Tue Nov 28 22:44:40 2006 +0000 @@ -123,6 +123,9 @@ 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 );