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

Painting text to PDF results in strange spacing for specific pointsizes

    XMLWordPrintable

Details

    Description

      When painting text to a PDF and subsequently printing the PDF, spacing for individual letters seems to beocme abnormally close with certain point sizes.

      See attached code.

       

      The attached code also somehow ignores the pointsize initially included in the font string, instead printing out with pointsize 8.

      If using printFont.setPointSize(); after printFont is created, the pointsize provided is properly reflected.

      Pointsizes of 6 and 8 have the problematic spacing, while 7 and 9 result in correct spacing.

      Attachments

        1. create-pdf-for-qt.zip
          21 kB
        2. pdf.png
          pdf.png
          12 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            kevin.zhang Kevin Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes