-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.3.1
-
None
-
Qt 5.3.1, Windows
The following problems occurs with one specific font ("WsC Swiss") which is included in the attached repro case:
Printing a QGraphicsTextItem as PDF via a QPainter object and the render() method causes the characters in the text to overlap. You can see the problem in the attached screenshot and "test_pdf_paint.pdf" file.
Printing the same item as PDF via the print() method, bypassing QPainter, works without any problems (see attached "test_pdf_print.pdf" file). Rendering the same item to an image or printing it to a physical printer, both using QPainter, works fine as well.
I have built a small sample project case to reproduce the problem. You will find it attached to this email ("ReproCase.zip"). The relevant font file is included in that package.
I tried to debug the problem, but honestly have no idea how to solve it. It seems to be specific to painting a PDF file with that font. Since the font works in all other cases I don't think it is a bug in the font itself.
Any help would be awesome.