``` fun loadFont(path: String, size: Double) = Thr...
# tornadofx
r
Copy code
fun loadFont(path: String, size: Double) = Thread.currentThread()
        .contextClassLoader
        .getResourceAsStream(path).use {
    Font.loadFont(it, size)
}