fixed off by one maxascii bug.
authorkramm <kramm>
Mon, 16 Aug 2004 08:36:22 +0000 (08:36 +0000)
committerkramm <kramm>
Mon, 16 Aug 2004 08:36:22 +0000 (08:36 +0000)
lib/modules/swffont.c

index 88b565a..e5ff9ee 100644 (file)
@@ -196,7 +196,7 @@ SWFFONT* swf_LoadTrueTypeFont(char*filename)
            g = -1;
        font->ascii2glyph[t] = g;
        if(g>=0) {
-           max_unicode = t;
+           max_unicode = t+1;
            if(!font->glyph2ascii[g]) {
                font->glyph2ascii[g] = t;
            }