Paul Kienzle wrote: > Technically this should be feasible --- freetype can load fonts > from memory or directly from the zip file given the proper driver, > and the various images should be similarly readable.
ttconv will have to be likewise updated (probably to accept a Python file-like object). It is currently hardcoded to only accept file paths and do its own reading using the C stdlib. The Cairo backend will also be unable to use fonts this way (but that's only a minor change from how it is now -- Cairo can only read fonts from normal OS-specific font installation directories anyway.) Personally, I'd prefer to see the fonts installed in a OS standard place -- then matplotlib could use fontconfig effectively on X11 systems and Cairo would function like all the other backends. But that probably means having a proper installer on Windows/Mac and being a little more clever with packaging on Linux. As for images, you could take the approach suggested by wxPython's img2py: http://www.wxpython.org/docs/api/wx.tools.img2py-module.html There is nothing wx-specific about the concepts there... But I'm not sure it's necessary if all of the backends can load images from strings anyway. Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel