win32 PIL fonts?

Bengt Richter bokr at accessone.com
Sat Jan 5 05:16:05 CET 2002


Is there a module that lets one load .ttf or .pfb fonts for use in PIL?
I saw that pyFT is a Freetype wrapper, and it looks like enough pieces
are around to do stuff one way or another, but is there something easy
to make something like

    ...
    im = Image.new('RGB',(wid,ht),(255,255,255))
    draw = ImageDraw.Draw(im)
    ...
    draw.text( x,y),'whatever', ...

work on win32? Prefereably with antialiased rendering? TIA.




More information about the Python-list mailing list