Hi,

following code, which uses PIL 1.1.5,
generates a bitmap of text "of" rendered in Georgia font,
but the result is strange, it seems like the rightmost
pixel column is shifted to the left,
it belongs to the "f" letter.

import ImageFont
fp = '/usr/share/fonts/corefonts/'
font = ImageFont.truetype(fp+'georgia.ttf', 10)
m = font.getmask('of', mode='1')
m.save_ppm('of.ppm')

The result PPM file and magnified PNG file should be attached.

--michal

PNG image

Portable pixmap

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to