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

Sebastian Haase haase at msg.ucsf.edu
Sun Jun 15 09:08:22 CEST 2008


Hi Laszlo ,
(sorry I can not help you)
just curious, what would you be using instead of PIL ?
And, when did Fredrik Lundh tell you this ?

Thanks,
Sebastian Haase

2008/6/13 Laszlo Nagy <gandalf at shopzeus.com>:
> This is a re-post. I did this re-post because nobody knew the answer to my
> original one, which was about a month ago. In the worst case I'm going to
> give up working with PIL and migrate to something that does not have this
> bug and will not post again. I hope you forgive me.
>
> Example program "test.py" is attached .
>
> The font (cartoon.ttf) and output of the program (test.png) is attached.
> Also "with_gimp.png" is attached that shows the same thing created in Gimp
> with the same ttf file. The obvious problem is that PIL puts "u" instead of
> "ü".
>
> Fredrik Lundh told me that PIL and Gimp are using the same engine for
> rendering fonts, so probably the problem is not with font rendering, and of
> course not with the ttf file. He also told me that the encoding parameter of
> ImageFont.truetype is ignored unless it is exactly four characters.
>
> Does anybody know how to solve the problem?
>
> Thanks,
>
>  Laszlo
>
>
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
>


More information about the Image-SIG mailing list