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

PDF export looks wrong when using the DirectWrite font engine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 4.8.0
    • None
    • Windows 7

    Description

      QFontEngineDirectWrite doesn't override QFontEngine::properties and therefore the PDF export code can't get the correct bounding box and other information when embedding fonts into PDF. This means that exported PDFs give warnings when opened in Acrobat Reader and look incorrect.

      To see this, use the attached test app. Turn on the 'DirectWrite' checkbox and click the 'Save as PDF' button. This should save 'test.pdf' in the same folder as the test app itself. Open this PDF in Acrobat and observe that the glyphs are the wrong size. Also I get a warning about an invalid bbox in the embedded font from Acrobat.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              jlarcombe James Larcombe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes