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

A font's HintingPreference is not streamed to/from QPicture

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.3.0 RC1
    • 4.8.0
    • GUI: Font handling
    • None
    • Windows 7
    • 4f50be8d1885e685ec8df3796e4156eb015affa7

      The new hintingPreference property of QFont isn't streamed in or our in the QDataStream streaming operators, meaning that it doesn't get preserved across painting to a QPicture and replaying the picture. This means that a print preview (for example) doesn't use the same font engine as what you requested when you painted.

      This caused weird problems in our application on Windows with fully-justified text in a QTextDocument: in places, the positioning of characters would be wrong if the text had been drawn with the DirectWrite font engine to a QPicture and then later played back with the standard GDI font engine. I could only reproduce this with certain fonts, which I don't have permission to attach here, but it was a consistent problem.

        For Gerrit Dashboard: QTBUG-22946
        # Subject Branch Project Status CR V

            mitch_curtis Mitch Curtis
            jlarcombe James Larcombe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes