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

when helvetica is used in a QTextDocument for printing to a PDF then the font is rendered too small on Embedded Linux

    XMLWordPrintable

    Details

      Description

      If one reads an html file to a QTextDocument and have also set a helvetica font for the html document, then the pdf created shows the characters incredibly small.

      The attached application can be used to reproduce the issue.

      It has been tested on Qt 4.8.2 which was configured with:
      ./configure -debug -prefix . -nomake examples -nomake demos -nomake docs -embedded -qvfb -confirm-license

      When you run the application via qvfb, the characters in the pdf are small.
      This doesn't reproduce on desktop Linux (tested with Ubuntu 10.04)

      If one removes the helvetica from test.html, the characters are displaying fine:

      <style type="text/css">
         body {  font-family: Arial, Helvetica, sans-serif; font-size: small}
         h2 {  font-family: Arial, Helvetica, sans-serif; font-size: large; color: #A80F41}
      </style>
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes