Browse Source

Merge pull request #7210 from DonLakeFlyer/WindowsFonts

QGCTextField: Fix crappy font rendering on Windows
QGC4.4
Don Gagne 6 years ago committed by GitHub
parent
commit
88e67fbf07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/QmlControls/QGCTextField.qml

5
src/QmlControls/QGCTextField.qml

@ -11,6 +11,7 @@ TextField { @@ -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 { @@ -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

Loading…
Cancel
Save