textsize for the same font and text gives different results on windows and linux with PIL 1.1.6<br><br>from PIL import Image,ImageDraw, ImageFont<br>font = ImageFont.truetype("KOMTXT__.ttf", 18,encoding="unic")<br>
im = Image.new("1", (1,1))<br>draw = ImageDraw.Draw(im)<br>draw.setfont(font)<br>textsize = draw.textsize(u'test me !',font=font)<br>print textsize[0]<br><br>on windows I have : 68<br>on linux (ubuntu 10.04) : 69<br>
<br>(the komika font can be get at <a href="http://www.fonts4free.net/komika-text-font.html" target="_blank">http://www.fonts4free.net/komika-text-font.html</a>, same result can be achieved with stock windows arial font)<br>
<br>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 ? <br>
<br>Thank you for your help !<br>