X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Fpolyops.c;h=fea200b7b27402d1eecedb375076ed2494a721fe;hb=5c336b4f7017fb121fc2cbe2a02c1fa56986b560;hp=9893d1d68a600ad0e38b66a7092affed03a76376;hpb=3c5d85148ee61a00ec69c5bf5e5b2cdc3b9cd6c8;p=swftools.git diff --git a/lib/devices/polyops.c b/lib/devices/polyops.c index 9893d1d..fea200b 100644 --- a/lib/devices/polyops.c +++ b/lib/devices/polyops.c @@ -315,12 +315,15 @@ void polyops_drawchar(struct _gfxdevice*dev, gfxfont_t*font, int glyphnr, gfxcol gfxbbox_t bbox2 = gfxline_getbbox(gfxline); double w = bbox2.xmax - bbox2.xmin; double h = bbox2.ymax - bbox2.ymin; - if(w < 0.001 || h < 0.001) /* character was clipped completely */ { - } else if(fabs((bbox.xmax - bbox.xmin) - w) > DEFAULT_GRID*2 || - fabs((bbox.ymax - bbox.ymin) - h) > DEFAULT_GRID*2) { + if(fabs((bbox.xmax - bbox.xmin) - w) > DEFAULT_GRID*2 || + fabs((bbox.ymax - bbox.ymin) - h) > DEFAULT_GRID*2) { /* notable change in character size: character was clipped TODO: how to deal with diagonal cuts? */ + msg(" Character %d was clipped: (%f,%f,%f,%f) -> (%f,%f,%f,%f)", + glyphnr, + bbox.xmin,bbox.ymin,bbox.xmax,bbox.ymax, + bbox2.xmin,bbox2.ymin,bbox2.xmax,bbox2.ymax); polyops_fill(dev, glyph, color); } else { if(i->out) i->out->drawchar(i->out, font, glyphnr, color, matrix);