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

PDF writer does not embed bold font correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.0
    • GUI: Font handling
    • None
    • Windows

    Description

      When exporting a PDF with custom fonts, for example using ttf fonts installed on the system fo example with font files:

      - RobotoCondensed-Regular.ttf

      - RobotoCondensed-Bold.ttf

      I'm generating a pdf with a label that contains regular and bold face variants of above fonts.

      The generated PDF, when viewed in Acrobat reader, only shows the regular font and also the PDF does not have the bold font embedded.

       

      The attached minimalistic program reproduces this problem nicely. The same QPainter draw text commands create an invalid PDF, yet a correct SVG (example output files of the program are also attached)

      Attachments

        1. RobotoCondensed-Regular.ttf
          122 kB
        2. RobotoCondensed-LightItalic.ttf
          131 kB
        3. RobotoCondensed-Light.ttf
          123 kB
        4. RobotoCondensed-Italic.ttf
          131 kB
        5. RobotoCondensed-BoldItalic.ttf
          132 kB
        6. RobotoCondensed-Bold.ttf
          124 kB
        7. PDFPrintTest.7z
          9 kB
        8. correct.svg
          1 kB
        9. Buggy.pdf
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jirauser48520 user-2cd08 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes