fixed log output in case only t1lib is activated.
[swftools.git] / lib / modules / swffont.c
index 3366e54..63ccc4f 100644 (file)
@@ -294,9 +294,9 @@ SWFFONT* swf_LoadTrueTypeFont(char*filename)
 
 #if 0
        if(bbox.xMin > 0) {
-           font->glyph[font->numchars].advance = (bbox.xMax*FT_SCALE)/FT_SUBPIXELS;
+           font->glyph[font->numchars].advance = (bbox.xMax*20*FT_SCALE)/FT_SUBPIXELS;
        } else {
-           font->glyph[font->numchars].advance = ((bbox.xMax - bbox.xMin)*FT_SCALE)/FT_SUBPIXELS;
+           font->glyph[font->numchars].advance = ((bbox.xMax - bbox.xMin)*20*FT_SCALE)/FT_SUBPIXELS;
        }
 #else
        font->glyph[font->numchars].advance = glyph->advance.x*20/65536;
@@ -476,7 +476,7 @@ SWFFONT* swf_LoadT1Font(char*filename)
            }
            last = pos;
            outline = outline->link;
-           printf("(%f,%f) ", pos.x, pos.y);
+           printf("t1lib: (%f,%f) ", pos.x, pos.y);
        }
        printf("\n");