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> |
||
|---|---|---|
| .. | ||
| 3rdparty | ||
| android | ||
| angle | ||
| concurrent | ||
| corelib | ||
| dbus | ||
| gui | ||
| network | ||
| opengl | ||
| openglextensions | ||
| platformsupport | ||
| plugins | ||
| printsupport | ||
| sql | ||
| testlib | ||
| tools | ||
| widgets | ||
| winmain | ||
| xml | ||
| src.pro | ||