From: Matthias Kramm Date: Sun, 15 Nov 2009 21:34:57 +0000 (-0800) Subject: added a comment to fontalignzone distance detector X-Git-Tag: version-0-9-1~242 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=d040bee21c66541e231a68fea4936328e4ce4c39 added a comment to fontalignzone distance detector --- diff --git a/lib/modules/swfalignzones.c b/lib/modules/swfalignzones.c index 81e1992..1961903 100644 --- a/lib/modules/swfalignzones.c +++ b/lib/modules/swfalignzones.c @@ -73,6 +73,14 @@ static void find_best(float*_row, int width, int*_x1, int*_x2, int min_size, int if(num<=1) { *_x1=x1; } else { + /* this code is slightly wrong, in that it assumes that the glyph distortion problem + gets worse when the font sizes get smaller. it doesn't. in fact, the smaller + the font size, the more of the scaling bugs disappear (http://www.quiss.org/files/scaletest.swf) + A better way would probably to use the font size you need for the two alignzones + to come to lie in different pixels, which what I think is what makes the problems + appear/disappear. + */ + double scale = min_size/1024.0; for(t=from;t<=to;t++) { if(t==x1) {