Re: Patch for freetype issue

Norbert Cauderan <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
On Fri, Jan 14, 2011 at 4:21 PM, Erwan Loaëc <[email protected]> wrote:

> Is anyone can take a look and confirm this is really a bug ?
>

 Without  the patch, following code gives 2 truncated "j". With the patch,
everything looks OK. The problem does not appear with every font but at
least with "arial" on windows and DejaVuSerif on linux.

import Image
import ImageDraw
import ImageFont
font =
ImageFont.truetype('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf',
150,encoding="unic")
im = Image.new("RGBA",(500,800),(0,255,0,127))
draw = ImageDraw.Draw(im)
draw.text((100,10),"jj ",font=font,fill=(255,0,0,255))
draw.text((100,180),"ji",font=font,fill=(255,0,0,255))
draw.text((100,370),"jj",font=font,fill=(255,0,0,255))
im.save("test.png")

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.