#include <freetype/ftoutln.h>
#endif
+/* Setting subpixels to 64 also means that the "point size" of the
+ font outlines will be 64. So the font, when rendered at original
+ size (i.e., the swf fontsize is 1024) will have the same size as
+ if it was rendered at 64pt */
+
#define FT_SCALE 1
#define FT_SUBPIXELS 64
#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;
}
last = pos;
outline = outline->link;
- printf("(%f,%f) ", pos.x, pos.y);
+ printf("t1lib: (%f,%f) ", pos.x, pos.y);
}
printf("\n");