ref: bca332875d15c09292a76812e7ad10622efd7eb0
parent: 3469d0d038b01c7ddce0fb67da68d79ad2f8b8a6
author: David Turner <[email protected]>
date: Wed Jul 19 16:17:37 EDT 2000
Boris's patch regarding glyph index 0
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -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;