qt6-bb10/src
Tor Arne Vestbø 3fec94fd07 Prevent repeated and unnecessary font population QCoreTextFontDatabase
The platform font database is populated from QFontDatabase, through the
static initializeDb() function, whenever the font database determines
that the platform database has not been initialized (by checking if the
font database is empty).

There are other clients of QPlatformFontDatabase though, such as QFont,
which uses the platform font database to check for the default family.
The CoreText implementation of determining the default family relies
on data that is computed during font population, and hence does an
internal (self-triggered) populate.

To prevent repeated populates as a result of calling QFont::defaultFamily()
we guard the populate by a similar isEmpty() check as QFontDatabase does,
but to ensure that this check works in the case of an invalidated font
database, we need to propagate the font database invalidation down to
the platform font database.

Change-Id: I8d06c6f6fc5da6353c087335859eaca008c2f6a6
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
2014-03-05 13:55:35 +01:00
..
3rdparty ANGLE: Allow for universal program binaries 2014-02-26 07:56:53 +01:00
android Android: Add commercial license to BSD-licensed files 2014-03-04 15:59:05 +01:00
angle Use Qt's RTTI setting when building ANGLE statically. 2014-02-26 12:58:00 +01:00
concurrent QtConcurrent: Extend workaround GCC bug 58800 in median calculation 2014-02-19 06:45:00 +01:00
corelib Revert path() behavior to not expand a current path on a drive 2014-03-04 15:59:05 +01:00
dbus Make D-Bus types without a matching Qt one prettier in qdbus 2014-02-22 04:38:56 +01:00
gui Prevent repeated and unnecessary font population QCoreTextFontDatabase 2014-03-05 13:55:35 +01:00
network SPDY must handle destoyed QNetworkReply 2014-03-04 11:29:30 +01:00
opengl Dynamic GL: remove exporting symbols 2014-03-04 15:59:05 +01:00
openglextensions Remove the header precompilation for QtXml and QtOpenGLExtensions 2014-03-04 04:36:00 +01:00
platformsupport Prevent repeated and unnecessary font population QCoreTextFontDatabase 2014-03-05 13:55:35 +01:00
plugins Make QFontEngine::type() non-virtual 2014-03-05 13:46:15 +01:00
printsupport QPrintEngine - Improve devMode handling 2014-02-26 12:58:00 +01:00
sql Fix some typos 2014-03-03 18:24:29 +01:00
testlib QtTest: Don't crash when -callgrind is used on QTEST_APPLESS_MAIN 2014-02-24 11:52:27 +01:00
tools Fix some typos 2014-03-03 18:24:29 +01:00
widgets Vista Style: Fix menu item checkmark offset for QQuick Controls 2014-03-04 15:59:05 +01:00
winmain WinRT winmain: handle -qdevel parameter for additional debugging tooling 2014-01-30 22:09:55 +01:00
xml Remove the header precompilation for QtXml and QtOpenGLExtensions 2014-03-04 04:36:00 +01:00
src.pro Dynamic GL switch on Windows 2014-02-14 10:51:44 +01:00