Force font antialiasing with highdpi scaling
Fonts look ugly when they are drawn scaled without antialiasing. Change-Id: I64268db5b37d4bc763ffa23632aca2eaac5d8eae Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
b4b8ea6181
commit
7c506150a5
@ -908,7 +908,7 @@ QFont QFontconfigDatabase::defaultFont() const
|
||||
void QFontconfigDatabase::setupFontEngine(QFontEngineFT *engine, const QFontDef &fontDef) const
|
||||
{
|
||||
bool antialias = !(fontDef.styleStrategy & QFont::NoAntialias);
|
||||
bool forcedAntialiasSetting = !antialias;
|
||||
bool forcedAntialiasSetting = !antialias || QHighDpiScaling::isActive();
|
||||
|
||||
const QPlatformServices *services = QGuiApplicationPrivate::platformIntegration()->services();
|
||||
bool useXftConf = false;
|
||||
|
Loading…
Reference in New Issue
Block a user