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++
Fix source typo in function names Renames functions that contain the typo 'Registery' to 'Registry' within libs/flake/text and a minor mention in plugins/tools/svgtexttool/tests
Kunda Ki1a2c755eb599
diff --git a/libs/flake/tests/TestSvgText.cpp b/libs/flake/tests/TestSvgText.cppindex 1c87d3f196..2b928fcf79 100644--- a/libs/flake/tests/TestSvgText.cpp+++ b/libs/flake/tests/TestSvgText.cpp@@ -112,7 +112,7 @@ void TestSvgText::initTestCase()"fonts/testFontsCozens/BaselineTest-Regular-with-BASE.otf",}) {QString fileName = TestUtil::fetchDataFileLazy(fontFile);- bool res = KoFontRegistry::instance()->addFontFilePathToRegistery(fileName);+ bool res = KoFontRegistry::instance()->addFontFilePathToRegistry(fileName);QVERIFY2(res, QString("KoFontRegistry could not add the test font %1").arg(fontFile).toLatin1());}@@ -123,7 +123,7 @@ void TestSvgText::initTestCase()"fonts/testFontNames",}) {QString fileName = TestUtil::fetchDataFileLazy(fontDir);- bool res = KoFontRegistry::instance()->addFontFileDirectoryToRegistery(fileName);+ bool res = KoFontRegistry::instance()->addFontFileDirectoryToRegistry(fileName);QVERIFY2(res, QString("KoFontRegistry could not add the directory of test fonts %1").arg(fontDir).toLatin1());}}diff --git a/libs/flake/text/KoCSSFontInfo.h b/libs/flake/text/KoCSSFontInfo.hindex 264cc1d40a..7c8478fea7 100644--- a/libs/flake/text/KoCSSFontInfo.h+++ b/libs/flake/text/KoCSSFontInfo.h@@ -13,7 +13,7 @@/*** @brief The KoCSSFontInfo class- * Convenience struct to make it easier to use KoFontRegistery.+ * Convenience struct to make it easier to use KoFontRegistry.* This struct contains default css values and can generate the axisvalues* for the given values.*/diff --git a/libs/flake/text/KoFontRegistry.cpp b/libs/flake/text/KoFontRegistry.cppindex 4d4092c2a1..c0bc304d90 100644--- a/libs/flake/text/KoFontRegistry.cpp+++ b/libs/flake/text/KoFontRegistry.cpp@@ -1168,7 +1168,7 @@ KoCSSFontInfo KoFontRegistry::getCssDataForPostScriptName(const QString postScrireturn info;}-bool KoFontRegistry::addFontFilePathToRegistery(const QString &path)+bool KoFontRegistry::addFontFilePathToRegistry(const QString &path){const QByteArray utfData = path.toUtf8();const FcChar8 *vals = reinterpret_cast<const FcChar8 *>(utfData.data());@@ -1179,7 +1179,7 @@ bool KoFontRegistry::addFontFilePathToRegistery(const QString &path)return success;}-bool KoFontRegistry::addFontFileDirectoryToRegistery(const QString &path)+bool KoFontRegistry::addFontFileDirectoryToRegistry(const QString &path){const QByteArray utfData = path.toUtf8();const FcChar8 *vals = reinterpret_cast<const FcChar8 *>(utfData.data());diff --git a/libs/flake/text/KoFontRegistry.h b/libs/flake/text/KoFontRegistry.hindex d253b15194..6d6bbf4a06 100644--- a/libs/flake/text/KoFontRegistry.h+++ b/libs/flake/text/KoFontRegistry.h@@ -126,21 +126,21 @@ private:friend class SvgTextCursorTest;/**- * @brief addFontFilePathToRegistery+ * @brief addFontFilePathToRegistry* This adds a font file to the registry. Right now only used by unittests.** @param path the path of the font file.* @return Whether adding the font file was successful.*/- bool addFontFilePathToRegistery(const QString &path);+ bool addFontFilePathToRegistry(const QString &path);/**- * @brief addFontFileDirectoryToRegistery+ * @brief addFontFileDirectoryToRegistry* This adds a directory of font files to the registry. Right now only used by unittests.* @param path the path of the directory.* @return whether it was successful.*/- bool addFontFileDirectoryToRegistery(const QString &path);+ bool addFontFileDirectoryToRegistry(const QString &path);QScopedPointer<Private> d;diff --git a/libs/flake/text/KoSvgTextProperties.h b/libs/flake/text/KoSvgTextProperties.hindex 6a1c4fdccf..a7bca46bcf 100644--- a/libs/flake/text/KoSvgTextProperties.h+++ b/libs/flake/text/KoSvgTextProperties.h@@ -282,7 +282,7 @@ public:/*** @brief cssFontInfo* @return this collects all the CSS Font properties into- * a KoCSSFontInfo struct for usage with the KoFontRegistery.+ * a KoCSSFontInfo struct for usage with the KoFontRegistry.*/KoCSSFontInfo cssFontInfo() const;diff --git a/plugins/tools/svgtexttool/tests/SvgTextCursorTest.cpp b/plugins/tools/svgtexttool/tests/SvgTextCursorTest.cppindex 602fb531fd..0a274b7792 100644--- a/plugins/tools/svgtexttool/tests/SvgTextCursorTest.cpp+++ b/plugins/tools/svgtexttool/tests/SvgTextCursorTest.cpp@@ -19,7 +19,7 @@void SvgTextCursorTest::initTestCase(){QString fileName = QString(FILES_DATA_DIR) + '/' + "DejaVuSans.ttf";- bool res = KoFontRegistry::instance()->addFontFilePathToRegistery(fileName);+ bool res = KoFontRegistry::instance()->addFontFilePathToRegistry(fileName);QVERIFY2(res, QString("KoFontRegistry could not add the test font %1").arg(fileName).toLatin1());}