[Image-SIG] Re: store ttf outside filesystem

Fredrik Lundh fredrik at pythonware.com
Fri Apr 16 08:06:42 EDT 2004

Gennady Kovalev wrote:

> I'm try to generate images with text in Zope+CMF, so we write graphic tool
> CMF. I want to store fonts in ZODB. So PIL font worked propertly, but TTF
> not.
> How i can tell FreeTypeFont to use not file name, but file handler, or
> StringIO?

you cannot, unless you add that functionality to the PIL FreeType bindings
freetype supports memory buffers, that is).

to use existing code, you'll have to copy each font to a temporary file
during drawing.


More information about the Image-SIG mailing list