Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.0
-
None
-
Windows 7
-
4f50be8d1885e685ec8df3796e4156eb015affa7
Description
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.
Attachments
Issue Links
- relates to
-
QTBUG-22814 QFont doesn't stream the style name to or from QDataStream, meaning that fonts with named styles don't draw correctly in e.g. print preview (Mac only)
- Closed