开发者

library for text rendering that supports text-on-path

开发者 https://www.devze.com 2023-01-04 23:08 出处:网络
I need a good, reliable library or toolchain for programatically rendering text to png, with different sizes, fonts, weights,开发者_运维问答 etc. It also needs to be able to render text in an arc or t

I need a good, reliable library or toolchain for programatically rendering text to png, with different sizes, fonts, weights,开发者_运维问答 etc. It also needs to be able to render text in an arc or to a path. I would like it to be fast, because I'd be running it as on a server.

I've tried using SVG and librsvg, but that doesn't render <textPath> elements.

I've tried pycairo, but again, the text to path doesn't work great, and everywhere in the cairo documentation it mentions that text-to-path is a "toy" and shouldn't be used for serious applications.

Python bindings would be best, because the server runs python. But I'll take any suggestion.


Qt has a SVG module, i believe it supports the textPath element.

http://doc.trolltech.com/4.1/qtsvg.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号