calculated correctly, this would cause the bounding_box() function for
freetype 2.x to return a larger than expected text width.
http://rt.cpan.org/NoAuth/Bug.html?id=11291
- minor cleanup of Imager::Fill
- eliminate unused variables and static functions
- simplify some XS code by adding another typemap entry
+- the right-side bearing used to adjust the final width wasn't being
+ calculated correctly, this would cause the bounding_box() function for
+ freetype 2.x to return a larger than expected text width.
+ http://rt.cpan.org/NoAuth/Bug.html?id=11291
=================================================================
/* last character
handle the case where the right the of the character overlaps the
right*/
- rightb = gm->horiAdvance - gm->horiBearingX - gm->width;
+ rightb = (gm->horiAdvance - gm->horiBearingX - gm->width)/64;
if (rightb > 0)
rightb = 0;
}