Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
4.3.5
-
None
Description
QFontComboBox::setCurrentFont doesn't work when trying to set a new added font as a current one
The following program shows a mismatch in the font families of the font object and the corresponding font info object. This suggests that this is indeed a problem with the font engine.
Test case main.cpp to reproduce
#include <QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); int id = QFontDatabase::addApplicationFont("ESRI_4.TTF"); Q_ASSERT(id != -1); QFontDatabase fontdb; QFont f = fontdb.font(QLatin1String("ESRI Oil, Gas, & Water"), QString("normal"), 12); QFontInfo fi(f); qDebug() << f.family() << fi.family(); return 0; }