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++
Try to improve sharpness of label in typesetting mode.
Wolthera van Hövell tot Westerflierdb7581813bb5
diff --git a/plugins/tools/svgtexttool/SvgTextCursor.cpp b/plugins/tools/svgtexttool/SvgTextCursor.cppindex 1150769528..911aca28ce 100644--- a/plugins/tools/svgtexttool/SvgTextCursor.cpp+++ b/plugins/tools/svgtexttool/SvgTextCursor.cpp@@ -823,7 +823,10 @@ void SvgTextCursor::paintDecorations(QPainter &gc, QColor selectionColor, int deQString name = handleName(d->hoveredTypeSettingHandle);if (!name.isEmpty()) {QPainterPath textP;- textP.addText(painterTf.map(d->typeSettingDecor.closestBaselinePoint), gc.font(), name);+ // When we're drawing on opengl, there's no anti-aliasing, so we should have full hinting for readabiltiy.+ QFont font = gc.font();+ font.setHintingPreference(QFont::PreferFullHinting);+ textP.addText(painterTf.map(d->typeSettingDecor.closestBaselinePoint).toPoint(), font, name);gc.save();QPen pen(bgColorForCaret(selectionColor, 255));pen.setCosmetic(true);