[rt.cpan.org #88993] use the correct width drawing non-AA for FT1
authorTony Cook <tony@develop-help.com>
Mon, 30 Sep 2013 01:48:41 +0000 (11:48 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 30 Sep 2013 01:48:41 +0000 (11:48 +1000)
The changes to the drawing code for FT1 used cols (the number of bytes)
instead of width (the number of pixels) when drawing non-AA text under
FreeType 1.

fontft1.c

index 446db4a..6af95e8 100644 (file)
--- a/fontft1.c
+++ b/fontft1.c
@@ -888,7 +888,7 @@ i_tt_dump_raster_map2( i_img* im, TT_Raster_Map* bit, i_img_dim xb, i_img_dim yb
        }
       }
 
-      i_render_color(&r, xb, yb+y, bit->cols, bmp, cl);
+      i_render_color(&r, xb, yb+y, bit->width, bmp, cl);
     }
 
     i_render_done(&r);