I need to scale text via font.pixelSize; The Docs say i should use the sp() function, but the example does not work. Here’s the code.
import Felgo 3.0
import QtQuick 2.0
GameWindow {
id: gameWindow
Rectangle {
width: parent.width
height: gameWindow.dp(48)
Text {
text: "20sp"
font.pixelSize: gameWindow.sp(20)
}
}
}
Any workaround?
Thanks,
Drosophila