[wxPython-users] load true type front (ttf) from file directly

Christopher Barker Chris.Barker at noaa.gov
Mon Apr 23 09:59:46 PDT 2007


Robin Dunn wrote:
>> I'm trying to figure out a way to read the file directly 
>> without having to install the font in my system to give access to it 
>> from my program.
>>
>> Is this possible?
> 
> Not with wxPython.

to bad though -- it's on my (very long) list of code I"d like to contribute!

> You may be able to use a library like freetype (if 
> they have a Python wrapper) to get info about the glyphs in the font 
> file, and then draw the glyphs yourself.

Perhaps easier would be to use PIL, then transfer the PIL image to 
wxPython (there are examples of that that in the Wiki)

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list