Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
5.9.8
-
None
-
NXP i.MX6 quad / 1GB RAM
Embedded linux build by yocto project
Description
Hi all,
i recently upgraded the Qt5 version for our i.mx6 target from v5.6.3 to v5.9.8.
Now, if i start the application, loading a font e.g. "NotoSansCJKjp-Black.otf" takes about 5s (Qt 5.6.3 ~ 62 ms).
#define LOGE std::cerr int register_fonts() { QDir directory("/opt/etc/ui/fonts/"); if (directory.exists()) { QStringList fonts = directory.entryList(QStringList() << "*.otf" << "*.ttf", QDir::Files); if (fonts.isEmpty()) { LOGE << "No fonts found in directory " << directory.absolutePath().toStdString(); return -1; } else { int errors = 0; foreach(QString fileName, fonts) { QFileInfo fontFile(directory.absolutePath() + "/" + fileName); LOGI << "Try to add font: " << fontFile.fileName().toStdString(); if (QFontDatabase::addApplicationFont(fontFile.absoluteFilePath()) == -1) { LOGE << "Adding font " << fileName.toStdString() << " FAILED!"; errors++; } } return errors; } } return -1; }
Application start Qt5 v5.6.3:
2019-09-05 10:55:39.561 INFO [354] [register_fonts@84] Try to add font: GothamXNarrow-Bold.otf
2019-09-05 10:55:39.584 INFO [354] [register_fonts@84] Try to add font: GothamXNarrow-BookItalic.otf
2019-09-05 10:55:39.591 INFO [354] [register_fonts@84] Try to add font: GothamXNarrow-Light.otf
2019-09-05 10:55:39.599 INFO [354] [register_fonts@84] Try to add font: GothamXNarrow-LightItalic.otf
2019-09-05 10:55:39.607 INFO [354] [register_fonts@84] Try to add font: GothamXNarrow-Medium.otf
2019-09-05 10:55:39.615 INFO [354] [register_fonts@84] Try to add font: GothamXNarrow-MediumItalic.otf
2019-09-05 10:55:39.622 INFO [354] [register_fonts@84] Try to add font: NotoSans-Condensed.ttf
2019-09-05 10:55:39.632 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedBlack.ttf
2019-09-05 10:55:39.642 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedBlackItalic.ttf
2019-09-05 10:55:39.651 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedBold.ttf
2019-09-05 10:55:39.661 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedBoldItalic.ttf
2019-09-05 10:55:39.669 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedExtraBold.ttf
2019-09-05 10:55:39.677 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedExtraBoldItalic.ttf
2019-09-05 10:55:39.686 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedExtraLight.ttf
2019-09-05 10:55:39.697 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedExtraLightItalic.ttf
2019-09-05 10:55:39.708 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedItalic.ttf
2019-09-05 10:55:39.720 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedLight.ttf
2019-09-05 10:55:39.732 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedLightItalic.ttf
2019-09-05 10:55:39.744 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedMedium.ttf
2019-09-05 10:55:39.755 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedMediumItalic.ttf
2019-09-05 10:55:39.766 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedSemiBold.ttf
2019-09-05 10:55:39.779 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedSemiBoldItalic.ttf
2019-09-05 10:55:39.791 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedThin.ttf
2019-09-05 10:55:39.803 INFO [354] [register_fonts@84] Try to add font: NotoSans-CondensedThinItalic.ttf
2019-09-05 10:55:39.815 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-Condensed.ttf
2019-09-05 10:55:39.823 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-CondensedBlack.ttf
2019-09-05 10:55:39.832 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-CondensedBold.ttf
2019-09-05 10:55:39.841 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-CondensedExtraBold.ttf
2019-09-05 10:55:39.850 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-CondensedExtraLight.ttf
2019-09-05 10:55:39.858 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-CondensedLight.ttf
2019-09-05 10:55:39.867 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-CondensedMedium.ttf
2019-09-05 10:55:39.876 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-CondensedSemiBold.ttf
2019-09-05 10:55:39.885 INFO [354] [register_fonts@84] Try to add font: NotoSansArabic-CondensedThin.ttf
2019-09-05 10:55:39.894 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKjp-Black.otf
2019-09-05 10:55:39.956 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKjp-Bold.otf
2019-09-05 10:55:40.001 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKjp-DemiLight.otf
2019-09-05 10:55:40.048 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKjp-Light.otf
2019-09-05 10:55:40.127 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKjp-Medium.otf
2019-09-05 10:55:40.199 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKjp-Regular.otf
2019-09-05 10:55:40.251 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKjp-Thin.otf
2019-09-05 10:55:40.297 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKsc-Black.otf
2019-09-05 10:55:40.351 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKsc-Bold.otf
2019-09-05 10:55:40.407 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKsc-DemiLight.otf
2019-09-05 10:55:40.451 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKsc-Light.otf
2019-09-05 10:55:40.496 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKsc-Medium.otf
2019-09-05 10:55:40.553 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKsc-Regular.otf
2019-09-05 10:55:40.603 INFO [354] [register_fonts@84] Try to add font: NotoSansCJKsc-Thin.otf
Application start Qt5 v5.9.8:
2019-09-05 10:24:46.630 INFO [4295] [register_fonts@84] Try to add font: GothamXNarrow-Bold.otf
2019-09-05 10:24:46.664 INFO [4295] [register_fonts@84] Try to add font: GothamXNarrow-BookItalic.otf
2019-09-05 10:24:46.686 INFO [4295] [register_fonts@84] Try to add font: GothamXNarrow-Light.otf
2019-09-05 10:24:46.710 INFO [4295] [register_fonts@84] Try to add font: GothamXNarrow-LightItalic.otf
2019-09-05 10:24:46.735 INFO [4295] [register_fonts@84] Try to add font: GothamXNarrow-Medium.otf
2019-09-05 10:24:46.758 INFO [4295] [register_fonts@84] Try to add font: GothamXNarrow-MediumItalic.otf
2019-09-05 10:24:46.777 INFO [4295] [register_fonts@84] Try to add font: NotoSans-Condensed.ttf
2019-09-05 10:24:46.794 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedBlack.ttf
2019-09-05 10:24:46.811 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedBlackItalic.ttf
2019-09-05 10:24:46.828 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedBold.ttf
2019-09-05 10:24:46.845 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedBoldItalic.ttf
2019-09-05 10:24:46.862 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedExtraBold.ttf
2019-09-05 10:24:46.879 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedExtraBoldItalic.ttf
2019-09-05 10:24:46.897 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedExtraLight.ttf
2019-09-05 10:24:46.913 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedExtraLightItalic.ttf
2019-09-05 10:24:46.931 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedItalic.ttf
2019-09-05 10:24:46.948 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedLight.ttf
2019-09-05 10:24:46.965 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedLightItalic.ttf
2019-09-05 10:24:46.982 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedMedium.ttf
2019-09-05 10:24:46.999 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedMediumItalic.ttf
2019-09-05 10:24:47.016 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedSemiBold.ttf
2019-09-05 10:24:47.033 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedSemiBoldItalic.ttf
2019-09-05 10:24:47.050 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedThin.ttf
2019-09-05 10:24:47.067 INFO [4295] [register_fonts@84] Try to add font: NotoSans-CondensedThinItalic.ttf
2019-09-05 10:24:47.085 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-Condensed.ttf
2019-09-05 10:24:47.098 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-CondensedBlack.ttf
2019-09-05 10:24:47.111 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-CondensedBold.ttf
2019-09-05 10:24:47.124 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-CondensedExtraBold.ttf
2019-09-05 10:24:47.137 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-CondensedExtraLight.ttf
2019-09-05 10:24:47.151 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-CondensedLight.ttf
2019-09-05 10:24:47.164 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-CondensedMedium.ttf
2019-09-05 10:24:47.177 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-CondensedSemiBold.ttf
2019-09-05 10:24:47.190 INFO [4295] [register_fonts@84] Try to add font: NotoSansArabic-CondensedThin.ttf
2019-09-05 10:24:47.203 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKjp-Black.otf
2019-09-05 10:24:51.860 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKjp-Bold.otf
2019-09-05 10:24:56.215 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKjp-DemiLight.otf
2019-09-05 10:25:00.437 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKjp-Light.otf
2019-09-05 10:25:04.654 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKjp-Medium.otf
2019-09-05 10:25:08.919 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKjp-Regular.otf
2019-09-05 10:25:13.146 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKjp-Thin.otf
2019-09-05 10:25:17.415 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKsc-Black.otf
2019-09-05 10:25:22.043 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKsc-Bold.otf
2019-09-05 10:25:26.368 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKsc-DemiLight.otf
2019-09-05 10:25:30.558 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKsc-Light.otf
2019-09-05 10:25:34.742 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKsc-Medium.otf
2019-09-05 10:25:38.983 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKsc-Regular.otf
2019-09-05 10:25:43.290 INFO [4295] [register_fonts@84] Try to add font: NotoSansCJKsc-Thin.otf