[Image-SIG] TrueType font encoding (re-post)
haase at msg.ucsf.edu
Mon Jun 16 23:03:34 CEST 2008
Hi Laszlo ,
thanks for the reply -- it's interesting to see how often public
questions get answered privately .... [ :-( ]
Have you heard about pyx ? http://pyx.sourceforge.net
If you don't need pixels, this is maybe what you want .... don't know
it if needs Latex though ....
On Mon, Jun 16, 2008 at 12:37 PM, Laszlo Nagy <gandalf at shopzeus.com> wrote:
> 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
>> 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 :
>> im = fill("L", size, 0)
>> 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