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++
Force non-var vertical metrics to use default vertical caret.
Wolthera van Hövell tot Westerflier23c976ecd28f
diff --git a/libs/flake/text/KoFontRegistry.cpp b/libs/flake/text/KoFontRegistry.cppindex eedfd937a7..a528a49397 100644--- a/libs/flake/text/KoFontRegistry.cpp+++ b/libs/flake/text/KoFontRegistry.cpp@@ -938,6 +938,13 @@ KoSvgText::FontMetrics KoFontRegistry::generateFontMetrics(FT_FaceSP face, bool}}+ /// BUG:517717, some vertical fonts have nonsense values for the caret.+ /// We can assume a multi-master font is relatively modern and doesn't have this issue.+ if (!FT_HAS_MULTIPLE_MASTERS(face) && !isHorizontal) {+ metrics.caretRise = 0;+ metrics.caretRun = 1;+ }+// Baselines.const QVector<hb_ot_layout_baseline_tag_t> baselines ({