[英]Pure python cross-platform font renderer?
I'm looking for a pure Python font renderer. 我正在寻找纯Python字体渲染器。 I don't need it to render to anything special, I just need the pixel colors/alpha.
我不需要它来渲染任何特殊的东西,我只需要像素颜色/ 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.
我现在正在使用PIL,但不确定是否需要将其插入任何未安装的系统库中。
Pyglet manages this, somehow, but I wasn't able to determine the relevant code. Pyglet以某种方式管理了此操作,但我无法确定相关代码。 I am working on a gui for pyglet, so if I could use this, that would probably be even better.
我正在为pyglet编写gui,因此,如果可以使用它,那可能会更好。
ReportLab can render to pixmaps: ReportLab可以渲染为像素图:
http://www.reportlab.com/apis/reportlab/2.4/graphics.html#module-reportlab.graphics.renderPM http://www.reportlab.com/apis/reportlab/2.4/graphics.html#module-reportlab.graphics.renderPM
probably a bit heavyweight for your needs though. 也许可以满足您的需求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.