Re: [Matplotlib-users] matplotlib font in cairo

2010-05-25 Thread Frank Adämmer
I've found a little work-a-round to get my custom font. Here it is: from ctypes import windll gdi32 = windll.gdi32 FR_PRIVATE = 0x10 gdi32.AddFontResourceExA(FILENAME_OF_TTF,FR_PRIVATE,0) greetz Frank Am 18.05.2010 16:09, schrieb Michael Droettboom: > We went through this a few years ago o

Re: [Matplotlib-users] matplotlib font in cairo

2010-05-18 Thread Michael Droettboom
We went through this a few years ago on the Cairo mailing list. The short answer is you need to copy the fonts from mpl-data to C:\Windows\Fonts to correctly use Cairo. The long answer: Cairo uses fontconfig for font lookup, which by default searches the system font directory (C:\Windows\Fonts

[Matplotlib-users] matplotlib font in cairo

2010-05-17 Thread copyrights
Hallo, I'm try to use MathTextParser output for cairo in my wxpython gui. Works well under ubunutu linux (maybe dublicated font) but fails under windows (screenshot: http://www.ubuntu-pics.de/bild/62985/auswahl_017_RC86gk.png ). How to tell cairo to use the font file from mpl-data? Here some c