Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39953

[Reg 4-5] Rendering HTML to QPicture Oultines text elements in the HTML

    XMLWordPrintable

Details

    Description

      When rendering HTML data to QPicture using QWebFrame, the text elements in the HTML are all converted into outline, losing text information.

      The same HTML rendered to PDF via QPrinter retains text information correctly.

      Attached example reproduces the problem.
      Run the example, a PDF will be created. The top line of the text in the PDF is first rendered from HTML to QPicture then drawn onto the printer. The lower line of the same text is rendered from the same HTML data directly to the printer.

      When rendering HTML to SVG using QSvgGenerator, all text are lost. They
      are not even converted to outlines.

      This is a regression from Qt 4.8 where QPicture retains the text information.

      Attachments

        1. qt_painter_patch.diff
          3 kB
        2. QTBUG-39953.zip
          1.0 kB
        3. st.pdf
          12 kB
        4. st.svg
          3 kB
        5. webkit_patch_multiline.diff
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            qtcomsupport Qt Support
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes