Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.8.0
-
None
-
Linux, FreeType
-
0aa9b30432cec3b7f366983f451fc9a7f8f83243
Description
Run the following code with graphics system "raster":
#include <QtGui> int main(int argc, char **argv) { QApplication app(argc, argv); QImage image(640, 200, QImage::Format_ARGB32); image.fill(Qt::white); { QPainter p(&image); QFont font; font.setPointSize(50); p.setFont(font); p.drawStaticText(0, 0, QStaticText(QString::fromLatin1("Point size %1").arg(font.pointSize()))); font.setPointSize(51); p.setFont(font); p.drawStaticText(0, 100, QStaticText(QString::fromLatin1("Point size %1").arg(font.pointSize()))); } QLabel label; label.setPixmap(QPixmap::fromImage(image)); label.show(); return app.exec(); }
The text with point size 50 will be visible, while the one with size 51 will be gone.