]> git.imager.perl.org - imager.git/commitdiff
fix channel output for FT2
authorTony Cook <tony@develop-help.com>
Fri, 22 Feb 2013 12:06:13 +0000 (23:06 +1100)
committerTony Cook <tony@develop-help.com>
Fri, 22 Feb 2013 12:06:13 +0000 (23:06 +1100)
FT2/freetyp2.c

index 25b6c38b87cff5de323d51d888b0ba26387a07bb..3af21fdef439611b098fa1b46fbd772f23613121 100644 (file)
@@ -900,6 +900,7 @@ i_ft2_cp(FT2_Fonthandle *handle, i_img *im, i_img_dim tx, i_img_dim ty, int chan
 
   work = i_img_8_new(bbox[2]-bbox[0]+1, bbox[3]-bbox[1]+1, 1);
   cl.channel[0] = 255;
+  cl.channel[1] = 255;
   if (!i_ft2_text(handle, work, -bbox[0], -bbox[1], &cl, cheight, cwidth, 
                   text, len, 1, aa, vlayout, utf8))
     return 0;