mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 04:41:15 +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
|
||||
FontLoader { id: iconFont; source: "../../fonts/AnonymousPro-Regular.ttf"; }
|
||||
property int size: 32
|
||||
width: size
|
||||
height: size
|
||||
font.pixelSize: size
|
||||
font.pointSize: size
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
font.family: iconFont.name
|
||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
|||
id: root
|
||||
FontLoader { id: iconFont; source: "../../fonts/FiraSans-SemiBold.ttf"; }
|
||||
property int size: 32
|
||||
width: size
|
||||
height: size
|
||||
font.pixelSize: size
|
||||
font.pointSize: size
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
font.family: iconFont.name
|
||||
|
|
|
@ -16,9 +16,9 @@ Text {
|
|||
id: root
|
||||
FontLoader { id: iconFont; source: "../../fonts/hifi-glyphs.ttf"; }
|
||||
property int size: 32
|
||||
font.pixelSize: size // Size this font in pixels because it's UI widgets.
|
||||
width: size
|
||||
height: size
|
||||
font.pixelSize: size
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
font.family: iconFont.name
|
||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
|||
id: root
|
||||
FontLoader { id: iconFont; source: "../../fonts/Raleway-Bold.ttf"; }
|
||||
property int size: 32
|
||||
width: size
|
||||
height: size
|
||||
font.pixelSize: size
|
||||
font.pointSize: size
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
font.family: iconFont.name
|
||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
|||
id: root
|
||||
FontLoader { id: iconFont; source: "../../fonts/Raleway-Light.ttf"; }
|
||||
property int size: 32
|
||||
width: size
|
||||
height: size
|
||||
font.pixelSize: size
|
||||
font.pointSize: size
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
font.family: iconFont.name
|
||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
|||
id: root
|
||||
FontLoader { id: iconFont; source: "../../fonts/Raleway-Regular.ttf"; }
|
||||
property int size: 32
|
||||
width: size
|
||||
height: size
|
||||
font.pixelSize: size
|
||||
font.pointSize: size
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
font.family: iconFont.name
|
||||
|
|
|
@ -16,9 +16,7 @@ Text {
|
|||
id: root
|
||||
FontLoader { id: iconFont; source: "../../fonts/Raleway-Semibold.ttf"; }
|
||||
property int size: 32
|
||||
width: size
|
||||
height: size
|
||||
font.pixelSize: size
|
||||
font.pointSize: size
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
horizontalAlignment: Text.AlignLeft
|
||||
font.family: iconFont.name
|
||||
|
|
Loading…
Reference in a new issue