Improve font rendering

This commit is contained in:
David Heinemeier Hansson
2026-05-15 18:41:25 +02:00
parent 78de3c76d2
commit 421bbb3e79
2 changed files with 4 additions and 2 deletions
@@ -1367,7 +1367,8 @@ Item {
text: buttonRoot.text
color: buttonRoot.active ? root.urgent : root.foreground
font.family: buttonRoot.fontFamily
font.pixelSize: buttonRoot.fontSize
font.pointSize: buttonRoot.fontSize * 0.75
renderType: Text.NativeRendering
rotation: buttonRoot.textRotation
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
@@ -41,7 +41,8 @@ Item {
text: root.text
color: root.active ? root.activeColor : root.foreground
font.family: root.fontFamily
font.pixelSize: root.fontSize
font.pointSize: root.fontSize * 0.75
renderType: Text.NativeRendering
rotation: root.textRotation
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter