Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 kf6-ktexteditor (6.6.0-0ubuntu2pl2) UNRELEASED; urgency=medium
 .
   * Backport https://invent.kde.org/frameworks/ktexteditor/-/commit/e20860c863ac945e7664e1b153c166ec18abc74e
Author: Pellaeon <nfsmwlin@gmail.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-12-27

--- kf6-ktexteditor-6.6.0.orig/autotests/src/configinterface_test.cpp
+++ kf6-ktexteditor-6.6.0/autotests/src/configinterface_test.cpp
@@ -168,8 +168,7 @@ void KateConfigInterfaceTest::testView()
     view->setConfigValue(QStringLiteral("scrollbar-preview"), false);
     QCOMPARE(view->configValue(QLatin1String("scrollbar-preview")).toBool(), false);
 
-    QFont f(QStringLiteral("Times"), 10, QFont::Bold);
-    f.setHintingPreference(QFont::PreferFullHinting);
+    const QFont f(QStringLiteral("Times"), 10, QFont::Bold);
     view->setConfigValue(QStringLiteral("font"), f);
     QCOMPARE(view->configValue(QLatin1String("font")).value<QFont>(), f);
 
--- kf6-ktexteditor-6.6.0.orig/src/utils/kateconfig.cpp
+++ kf6-ktexteditor-6.6.0/src/utils/kateconfig.cpp
@@ -974,10 +974,6 @@ void KateRendererConfig::setFont(const Q
     m_font = font;
     m_fontSet = true;
 
-    // Set full hinting instead to ensure the letters are aligned properly, bug 482659
-    // https://codereview.qt-project.org/c/qt/qtbase/+/546168
-    m_font.setHintingPreference(QFont::PreferFullHinting);
-
     configEnd();
 }
 
