Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.2.0, 5.2.1
-
Linux
Description
QFontDatabase::removeApplicationFont returns true which means it's removed. But after that we can see font is still in database. Works fine on Windows.
Simple test application:
main.cpp
#include <QApplication> #include <QFontDatabase> #include <QDebug> int main(int argc, char *argv[]) { QApplication a(argc, argv); int fontIndex = QFontDatabase::addApplicationFont("Alperton.otf"); qDebug() << "fontIndex:" << fontIndex; if(QFontDatabase::removeApplicationFont(fontIndex)) qDebug() << "Font successfully removed"; QFontDatabase db; foreach (const QString &family, db.families()) { if(family.compare("Alperton") == 0 ) qDebug() << family << "is still in database!"; } return a.exec(); }