Boris's patch regarding glyph index 0

This commit is contained in:
David Turner 2000-07-19 20:17:37 +00:00
parent 3469d0d038
commit bca332875d
1 changed files with 7 additions and 2 deletions

View File

@ -482,9 +482,9 @@
char_code -= first;
if ( char_code < count )
result = char_code;
result = char_code+1;
else
result = font->header.default_char - first;
result = 0;
}
return result;
@ -515,6 +515,11 @@
goto Exit;
}
if (glyph_index > 0)
glyph_index--;
else
glyph_index = font->header.default_char - font->header.first_char;
new_format = font->header.version == 0x300;
len = new_format ? 6 : 4;