[John Hunter]

> >>>>> "Andrew" == Andrew P Lentvorski <[EMAIL PROTECTED]> writes:

>     Andrew> However, if you really want to handle text well, you
>     Andrew> should probably look at something like PyFT (Python
>     Andrew> Freetype) to render things with full flexibility and
>     Andrew> accuracy.

> Thanks for the tip.  I just upgraded my freetype lib and installed PyFT.
> Do you have any demo code for PyFT, even better integrating PyFT with
> pygtk, to speed my along in getting up to speed with this vast new world?

One thing I liked a lot with Freetype (and PyFT) was the ability to
generate correctly anti-aliased letters on transparent background.
This helped for later GIMP montage, and printing at good resolution,
without too apparent loss of quality.  If I remember well, I chose to
defeat the outline caching in PyFT, because it was not very likely that
I use the same letter twice at the same size and in the same orientation.

This was for generating the labels (I'm not sure of the English word,
I really mean the papers to contain the art work) for a CD-ROM and its
plastic box.  I used PyFT with PIL (Python Imaging Library), but not in
`pygtk' context, so even if my two programs are not big, I'm hesitant
cluttering this mailing list with them.  Just ask me if you think they
could be useful as examples.  I'm not even sure they would work with the
most recent releases of Freetype and PyFT...

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to