X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fmakefonts.cc;h=0f64799c1844cf7de133b6bc732b6533385aa17e;hb=08413f49a157383b76b52520bd9d69e13250901e;hp=a36dd8a188c87666791348f3c02b43e423e4154f;hpb=b15e6b12828dec3f1bc514c5111da908d0341a80;p=swftools.git diff --git a/lib/example/makefonts.cc b/lib/example/makefonts.cc index a36dd8a..0f64799 100644 --- a/lib/example/makefonts.cc +++ b/lib/example/makefonts.cc @@ -91,7 +91,7 @@ SWFFONT * t1font2swffont(int i) for(s=0;sgetOutline(encoding[s]); + T1_OUTLINE*outline = font->getOutline(encoding[s], 0); if(outline && outline->link) num++; } @@ -122,7 +122,7 @@ SWFFONT * t1font2swffont(int i) for(s=0;sgetOutline(encoding[s]); + T1_OUTLINE*outline = font->getOutline(encoding[s],0); int width = font->getWidth(encoding[s]); if(outline && outline->link) { int log = 0; @@ -130,7 +130,7 @@ SWFFONT * t1font2swffont(int i) wfont->glyph2ascii[num] = s; swf_ShapeNew(&wfont->glyph[num].shape); SHAPE*shape = wfont->glyph[num].shape; - wfont->glyph[num].advance = width/2; + wfont->glyph[num].advance = (int)(width/6.4); // 128/20 TAG*tag = swf_InsertTag(0,ST_DEFINESHAPE);