Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.2, 6.10
-
None
-
4d9bd9572 (dev), 09918e3da (6.10), 07b3434f9 (6.9), 8bdaa95e8 (tqtc/lts-6.8)
Description
When rendering an SVG with text, the text is converted/render to/as a path and not as text.
#include <QCoreApplication> #include <QObject> #include <QSvgGenerator> #include <QPainter> #include <QPdfWriter> #include <QSvgRenderer> int main(int argc, char *argv[]) { QGuiApplication a(argc, argv); QPdfWriter pdfWriter("out.pdf"); pdfWriter.setPageMargins(QMarginsF(0, 0, 0, 0)); pdfWriter.setPageSize(QPageSize(QSizeF(297, 210), QPageSize::Millimeter)); // pdfWriter.setResolution(m_resolutionDPI); QPainter painter(&pdfWriter); QSvgRenderer svgRendere(QString::fromLatin1("simple.svg")); svgRendere.render(&painter); painter.end(); return a.exec(); }
Attachments
Issue Links
- relates to
-
QTBUG-52417 Web fonts are not embedded in PDF on Linux and render as vector outlines
-
- Reported
-
- resulted from
-
QTBUG-33583 PDF output converts text to outline, rendering them un-searchable
-
- Closed
-