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

QCoreGraphicsPaintEngine does not render fonts correctly when printing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.0.0
    • 5.0.0
    • None
    • Mac OSX Lion.
    • b625ff4c7b68505b6d299d688734c9c1d448cb80

      Run the examples/richtext/textedit/textedit.app then try to print. The resulting printouts are rendered completely wrong. This is not an issue on Linux, Windows is untested.

      If you print to a physical printer, or print and save as PDF via the inbuilt Mac PDF option, i.e. if QPrinter uses NativeFormat and QMacPrintEngine, then all the the glyphs are not spaced correctly and overprinted on each other. Example attached as PrintPdfViaMac.pdf.

      If you Export as PDF, i.e. if QPrinter uses PdfFormat and QPdfPrintEngine, then the glyphs are very small and spaced too far apart. Example attached as ExportPdf.pdf.

      I'm guessing this is an issue in the paint engine, but it could be in the font handling. I doubt it is in textedit as Linux works fine.

      This is probably a blocker for Beta 1.

        1. ExportPdf.pdf
          617 kB
        2. PrintPdfViaMac.pdf
          65 kB
        3. testfix2.pdf
          633 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            johnlayt John Layt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes