From 0ced75ceee533e51417729790b4ee488db656b87 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 4 Feb 2019 12:22:49 -0800 Subject: [PATCH] Fix crappy font rendering on Windows --- src/QmlControls/QGCTextField.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/QmlControls/QGCTextField.qml b/src/QmlControls/QGCTextField.qml index d8043b4fc..4e132f5e7 100644 --- a/src/QmlControls/QGCTextField.qml +++ b/src/QmlControls/QGCTextField.qml @@ -11,6 +11,7 @@ TextField { textColor: qgcPal.textFieldText implicitHeight: ScreenTools.implicitTextFieldHeight activeFocusOnPress: true + antialiasing: true property bool showUnits: false property bool showHelp: false @@ -47,7 +48,11 @@ TextField { } style: TextFieldStyle { + id: tfs font.pointSize: ScreenTools.defaultFontPointSize + font.family: ScreenTools.normalFontFamily + renderType: ScreenTools.isWindows ? Text.QtRendering : tfs.renderType // This works around font rendering problems on windows + background: Item { id: backgroundItem -- 2.22.0