Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.2.2
-
None
Description
Creating a QFont instance, not passing a font family, before QApplication is created may cause font metrics to be wrong, i.e.
int main(int argc, char** argv)
{ QFont foo; QApplication qapp(argc, argv); // ... return qapp.exec(); }This will in some cases cause text to exceed the boundaries of it's widget, becoming clipped.
This does not happen if a family name is passed to the QFont instance, such as
QFont foo("foo");
The actual family name used doesn't seem to matter here, it can even be an non-existant one.