Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Add a comment about the use of the host fontconfig configuation
Dmitry Kazakovb1cce1c049a5
diff --git a/libs/flake/text/KoFontRegistry.cpp b/libs/flake/text/KoFontRegistry.cppindex 660a96959d..43d692148f 100644--- a/libs/flake/text/KoFontRegistry.cpp+++ b/libs/flake/text/KoFontRegistry.cpp@@ -93,7 +93,14 @@ public:KIS_ASSERT(config && "No Fontconfig support available");#ifdef Q_OS_LINUX- // This loads the fontconfig configured on Linux.+ /**+ * This loads the fontconfig configured on the host Linux system.+ *+ * Theoretically, it can cause some version inconsistency problems if+ * the version of fontconfig on the host differs from the version+ * of fontconfig shipped with Krita. But we estimate such risks as+ * negligible.+ */if (qgetenv("FONTCONFIG_PATH").isEmpty()) {QDir appdir("/etc/fonts");if (QFile::exists(appdir.absoluteFilePath("fonts.conf"))) {