shino
shino

Reputation: 4734

Pure python cross-platform font renderer?

I'm looking for a pure Python font renderer. I don't need it to render to anything special, I just need the pixel colors/alpha. I'm using PIL right now, but I am not sure if it needs to hook into any system libraries that may not be installed.

Pyglet manages this, somehow, but I wasn't able to determine the relevant code. I am working on a gui for pyglet, so if I could use this, that would probably be even better.

Upvotes: 0

Views: 455

Answers (2)

Spacedman
Spacedman

Reputation: 94162

ReportLab can render to pixmaps:

http://www.reportlab.com/apis/reportlab/2.4/graphics.html#module-reportlab.graphics.renderPM

probably a bit heavyweight for your needs though.

Upvotes: 0

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798436

Pyglet uses FreeType where available. I'd stick with that, even though it's not pure Python.

Upvotes: 4

Related Questions