Text font sizes are specified in points

This commit is contained in:
David Rowe 2016-02-13 15:10:19 +13:00
parent f29b75b517
commit d6772545d5
7 changed files with 7 additions and 19 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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