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

QTextDocument print results bad looking on Embedded Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.5
    • GUI: Printing
    • None
    • Windows 7

      Embedded Linux

    Description

      Printing QTextDocument to a PDF results bad looking text. The pdf creates on linux looks jagged.Attached PDF documents show how the text looks like with both versions.

       

      QPrinter printer(QPrinter::PrinterResolution);
      printer.setOutputFormat(QPrinter::PdfFormat);
      printer.setPaperSize(QPrinter::A4);
      printer.setOutputFileName(fileName);
      printer.setResolution(72);//Linux
      QTextDocument doc; 
      doc.setPlainText(text); 
      QFont font; 
      font.setPointSize(12);
      font.setFamily("Arial");
      doc.setDefaultFont(font);
      doc.print(&printer);

       

      Attachments

        1. linux_pdf.pdf
          7 kB
        2. windows_pdf.pdf
          8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johnlayt John Layt
            john45676 Chih-Chun Chung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes