Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
4.7.2
-
None
-
Mac OS X
Description
The attached test application shows three pieces of text in 12pt Times New Roman. Each of these is scaled by x4.25 in three ways:
1. By scaling the QPainter used to draw the text
2. By putting the text in a QTextEdit widget that is embedded in a QGraphicsScene and scaling the QGraphicsView
3. By putting the text in a QGraphicsTextItem in a QGraphicsScene and scaling the QGraphicsView
Build this application and run it on Windows and Mac to compare the results.
On Windows, each of these renders correctly, drawing the text at the scaled size crisply.
On Mac OS X (Cocoa), the text in the QTextEdit isn't scaled properly. Instead it's rendered at 100% and then scaled up as a bitmap, giving very poor visual results.
This is very important for our application, because the user needs to be able to edit scaled text in place in our scalable document. The only way of scaling a QTextEdit is by using the QGraphicsView subsystem, but due to this bug it looks fairly awful on the Mac.