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 25b6c38..3af21fd 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;