[Image-SIG] TrueType font encoding (re-post)

Laszlo Nagy gandalf at shopzeus.com
Mon Jun 16 12:37:54 CEST 2008

Sebastian Haase wrote:
> Hi Laszlo ,
> (sorry I can not help you)
> just curious, what would you be using instead of PIL ?
reportlab or pycairo Not decided yet. My program prints out small images 
on a printer, I do not really need to render an raster image, PDF would 
also be fine.
> And, when did Fredrik Lundh tell you this ?
He replied to my first post in private. It was about a month ago.

I also got a private response from somebody called Nicolas Pinault with 

> I have not found a solution to your problem. I think the problem is in 
> _imagingft service.
> In ImageFont.py module, FreeTypeFont class, getmask2 method :
> Replace
>        im = fill("L", size, 0)
> by
>        im = fill("L", size, 128)
> Run your testcase. You can see that the text is located at the top of 
> the rendered window.
> I guess that it should be located at the bottom of the rendered window 
> leaving space for the missing upper part of the font.
> Unfortunately _imagingft service in not written in Python. So the 
> investigation is not as easy as with modules written in Python. 

I think he is right. Unfortunately, I do not know C well enough to 
fix/debug the problem.



More information about the Image-SIG mailing list