textsize for the same font and text gives different results on windows and
linux with PIL 1.1.6
from PIL import Image,ImageDraw, ImageFont
font = ImageFont.truetype("KOMTXT__.ttf", 18,encoding="unic")
im = Image.new("1", (1,1))
draw = ImageDraw.Draw(im)
draw.setfont(font)
textsize = draw.textsize(u'test me !',font=font)
print textsize[0]
on windows I have : 68
on linux (ubuntu 10.04) : 69
(the komika font can be get at
http://www.fonts4free.net/komika-text-font.html, same result can be achieved
with stock windows arial font)
Is there a way to be sure to have the same result on both platforms ? I
guess this has something to do with freetype and I could recompile linux
version with the exact same version used for the windows build, but how
could I know this version ?
Thank you for your help !
_______________________________________________
Image-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/image-sig