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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top