Applying this stylesheet at the application level ...
# tornadofx
n
Applying this stylesheet at the application level sorts out text scaling (on a 14" display with a 1080p resolution) but is far from ideal:
Copy code
import tornadofx.Dimension
import tornadofx.Dimension.LinearUnits
import tornadofx.Stylesheet

class AppStyle : Stylesheet() {
    init {
        s(".root") {
            fontSize = Dimension(1.3, LinearUnits.em)
            fontFamily = "Noto Sans"
        }
    }
}
Used this window to guesstimate text scaling.
r
You can just use
fontSize = 1.3.em
👌 1
n
More of a preference to include where em comes from to add a bit of clarity.