X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfalignzones.c;fp=lib%2Fmodules%2Fswfalignzones.c;h=19619036c8da726fb4f0ca365ffb760879933c88;hb=d040bee21c66541e231a68fea4936328e4ce4c39;hp=81e1992945de3e11b761f8e334b53ebe6959f3b4;hpb=4acbf1df5b59caabee47e8015c4e32d25dc039cb;p=swftools.git 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) {