<@U0F3291QE> I'm trying to use custom font in my ...
# tornadofx
a
@edvin I'm trying to use custom font in my application This is where I put the font files and fontstyle.css https://cl.ly/2R3o3y0X0s1e this is my styles file
Copy code
init {

        importStylesheet("/fontstyle.css")

        label and heading {
            padding = box(10.px)
            fontSize = 20.px
            fontWeight = FontWeight.BOLD
        }

        smallLabel {
            fontSize = 11.px
            fontWeight = FontWeight.SEMI_BOLD

        }

    }
This is my fontsyle.css
Copy code
@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.ttf');
}