Browse Source

Merge pull request #4310 from NaterGator/wintextfix

Fix most (all?) QML font rendering glitches on Windows
QGC4.4
Don Gagne 8 years ago committed by GitHub
parent
commit
5598105bb1
  1. 4
      src/QmlControls/ScreenTools.qml

4
src/QmlControls/ScreenTools.qml

@ -87,8 +87,8 @@ Item { @@ -87,8 +87,8 @@ Item {
function _setBasePointSize(pointSize) {
_textMeasure.font.pointSize = pointSize
defaultFontPointSize = pointSize
defaultFontPixelHeight = _textMeasure.fontHeight
defaultFontPixelWidth = _textMeasure.fontWidth
defaultFontPixelHeight = Math.round(_textMeasure.fontHeight/2.0)*2
defaultFontPixelWidth = Math.round(_textMeasure.fontWidth/2.0)*2
smallFontPointSize = defaultFontPointSize * _screenTools.smallFontPointRatio
mediumFontPointSize = defaultFontPointSize * _screenTools.mediumFontPointRatio
largeFontPointSize = defaultFontPointSize * _screenTools.largeFontPointRatio

Loading…
Cancel
Save