PIL ImageFont getmask bug?

M

michal bozon

Hi,

following code, which uses Pythin Imaging library 1.1.5,
geenrates 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.

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')

I'm not sure, where the problem is.
The result PPM file and magnified PNG file should be attached.

--michal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top