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

Christopher Barker Chris.Barker at noaa.gov
Fri May 18 21:33:21 PDT 2007


James Bigler wrote:
> I have a font with all sorts of icons stored in it (similar to 
> wingdings).  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?

I'm afraid not. wxWidgets doesn't support loading fonts directly from 
files. Too bad, I hope someone adds that feature some day.

In the meantime, you can kludge around it by drawing your stuff to an 
image with PIL (or something else), and then transferring that image to 
wx. There are some pages in the Wiki that talk about this kind of image 
manipulation.

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

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




More information about the wxpython-users mailing list