mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:52:26 +02:00
Text font sizes are specified in points
This commit is contained in:
parent
f29b75b517
commit
d6772545d5
7 changed files with 7 additions and 19 deletions
|
@ -16,9 +16,7 @@ Text {
|
||||||
id: root
|
id: root
|
||||||
FontLoader { id: iconFont; source: "../../fonts/AnonymousPro-Regular.ttf"; }
|
FontLoader { id: iconFont; source: "../../fonts/AnonymousPro-Regular.ttf"; }
|
||||||
property int size: 32
|
property int size: 32
|
||||||
width: size
|
font.pointSize: size
|
||||||
height: size
|
|
||||||
font.pixelSize: size
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
font.family: iconFont.name
|
font.family: iconFont.name
|
||||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
||||||
id: root
|
id: root
|
||||||
FontLoader { id: iconFont; source: "../../fonts/FiraSans-SemiBold.ttf"; }
|
FontLoader { id: iconFont; source: "../../fonts/FiraSans-SemiBold.ttf"; }
|
||||||
property int size: 32
|
property int size: 32
|
||||||
width: size
|
font.pointSize: size
|
||||||
height: size
|
|
||||||
font.pixelSize: size
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
font.family: iconFont.name
|
font.family: iconFont.name
|
||||||
|
|
|
@ -16,9 +16,9 @@ Text {
|
||||||
id: root
|
id: root
|
||||||
FontLoader { id: iconFont; source: "../../fonts/hifi-glyphs.ttf"; }
|
FontLoader { id: iconFont; source: "../../fonts/hifi-glyphs.ttf"; }
|
||||||
property int size: 32
|
property int size: 32
|
||||||
|
font.pixelSize: size // Size this font in pixels because it's UI widgets.
|
||||||
width: size
|
width: size
|
||||||
height: size
|
height: size
|
||||||
font.pixelSize: size
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
font.family: iconFont.name
|
font.family: iconFont.name
|
||||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
||||||
id: root
|
id: root
|
||||||
FontLoader { id: iconFont; source: "../../fonts/Raleway-Bold.ttf"; }
|
FontLoader { id: iconFont; source: "../../fonts/Raleway-Bold.ttf"; }
|
||||||
property int size: 32
|
property int size: 32
|
||||||
width: size
|
font.pointSize: size
|
||||||
height: size
|
|
||||||
font.pixelSize: size
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
font.family: iconFont.name
|
font.family: iconFont.name
|
||||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
||||||
id: root
|
id: root
|
||||||
FontLoader { id: iconFont; source: "../../fonts/Raleway-Light.ttf"; }
|
FontLoader { id: iconFont; source: "../../fonts/Raleway-Light.ttf"; }
|
||||||
property int size: 32
|
property int size: 32
|
||||||
width: size
|
font.pointSize: size
|
||||||
height: size
|
|
||||||
font.pixelSize: size
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
font.family: iconFont.name
|
font.family: iconFont.name
|
||||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
||||||
id: root
|
id: root
|
||||||
FontLoader { id: iconFont; source: "../../fonts/Raleway-Regular.ttf"; }
|
FontLoader { id: iconFont; source: "../../fonts/Raleway-Regular.ttf"; }
|
||||||
property int size: 32
|
property int size: 32
|
||||||
width: size
|
font.pointSize: size
|
||||||
height: size
|
|
||||||
font.pixelSize: size
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
font.family: iconFont.name
|
font.family: iconFont.name
|
||||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
||||||
id: root
|
id: root
|
||||||
FontLoader { id: iconFont; source: "../../fonts/Raleway-Semibold.ttf"; }
|
FontLoader { id: iconFont; source: "../../fonts/Raleway-Semibold.ttf"; }
|
||||||
property int size: 32
|
property int size: 32
|
||||||
width: size
|
font.pointSize: size
|
||||||
height: size
|
|
||||||
font.pixelSize: size
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
font.family: iconFont.name
|
font.family: iconFont.name
|
||||||
|
|
Loading…
Reference in a new issue