QT QSvgRenderer rotated text disappears

时间:2015-06-25 18:43:44

标签: c++ qt svg fonts

When I render an SVG with QSvgRenderer it shows text properly on my local machine. On the server if text is rotated it simply disappears. I tried instally freetype2 and pango and recompiling but it doesn't fix the situation. What am I missing? NOTE: Both my local deployment and my remote server run with xvfb-run.

1 个答案:

答案 0 :(得分:0)

文本呈现没有任何问题,问题是文本正在视口之外被翻译。原因是Qt SVG模块中存在错误。它没有正确处理旋转变换。我打开了关于Qt bugtracker的错误报告:

https://bugreports.qt.io/browse/QTBUG-46883