<table><tr><td style="">ahartmetz added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26185">View Revision</a></tr></table><br /><div><div><p>I think I see the problem. You pay for the <em>possibility</em> to have scaling with unhinted fonts. I am pretty sure that that isn't an acceptable way of handling it. Most Linux desktop fonts are intended to be used with some hinting (slight hinting usually?). QHighDpiScaling::isActive() returns true even when the scale factor is 1.0 as in my case. Looks like a Qt bug to me.</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="diff" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><span style="color: #000080">diff --git a/src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp b/src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp</span>
<span style="color: #000080">index e28b40c240..05bd01f158 100644</span>
<span style="color: #a00000">--- a/src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp</span>
<span style="color: #00a000">+++ b/src/platformsupport/fontdatabases/fontconfig/qfontconfigdatabase.cpp</span>
<span style="color: #800080">@@ -611,7 +611,7 @@ QFontEngine::HintStyle defaultHintStyleFromMatch(QFont::HintingPreference hintin</span>
}
if (QHighDpiScaling::isActive())
<span style="color: #a00000">- return QFontEngine::HintNone;</span>
<span style="color: #00a000">+ return QFontEngine::HintNone; // NNNNOOOOOOO</span>
int hint_style = 0;
if (FcPatternGetInteger (match, FC_HINT_STYLE, 0, &hint_style) == FcResultMatch) {
<span style="color: #800080">@@ -908,7 +908,7 @@ QFont QFontconfigDatabase::defaultFont() const</span>
void QFontconfigDatabase::setupFontEngine(QFontEngineFT *engine, const QFontDef &fontDef) const
{
bool antialias = !(fontDef.styleStrategy & QFont::NoAntialias);
<span style="color: #a00000">- bool forcedAntialiasSetting = !antialias || QHighDpiScaling::isActive();</span>
<span style="color: #00a000">+ bool forcedAntialiasSetting = !antialias || QHighDpiScaling::isActive(); // NNNNOOOOOOO</span>
const QPlatformServices *services = QGuiApplicationPrivate::platformIntegration()->services();
bool useXftConf = false;</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26185">https://phabricator.kde.org/D26185</a></div></div><br /><div><strong>To: </strong>ahartmetz, Plasma, apol, davidedmundson<br /><strong>Cc: </strong>asturmlechner, dfaure, davidedmundson, anthonyfieroni, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>