qfontdatabase slowing down my application with flood of "OpenType support missing" warnings
-
Dear forum members
I'm having a problem with qfontdatabase. It is giving out so many warnings, that my applications stalls for about 15 seconds when run from qtcreator.
I'm getting many warnings like:
OpenType support missing for "FreeSerif", script 10 (:0, )
OpenType support missing for "Noto Sans Imperial Aramaic", script 10 (:0, )
OpenType support missing for "Noto Sans Javanese", script 10 (:0, )
.. many more
OpenType support missing for "", script 10 (:0, )
... and a real flood of these without any font name
They are all for "script 10". The message is coming from qfontdatabase.cpp, lines 722 or 747 (qt 6.4.1). Script 10 is from QChar script enum and stands for QChar::Script_Thaana. The fontdatabase seems to be called by qtquick textedit.
I'm pretty sure that the problem comes from my linux (debian bookworm), because this behaviour started after a not so well going update of the system.
Anyhow, rebuilding font cache, installing some opentype fonts did not change anything. The font system actually seems absolutely OK.
Anyway, as much as I appreciate Qt's ability to display Maledivien writing, why is it looking for that characters? My application runs in english, there is no i18n in place, and the only used fonts are latin.
Shouldn't that warning be removed from qfontdatabase, as it doesn't help much while causing quite some damage?
And finally, can anyone give me a hint, how I cloud resolve the issue?