Instead of loading font from css, I'm using this ...
# tornadofx
a
Instead of loading font from css, I'm using this
Copy code
Font.loadFont(javaClass.getResourceAsStream("/fonts/Lato-Regular.ttf"), 16.0)
And according to the method loadfont documentation
Copy code
* Loads a font resource from the specified input stream.
     * If the load is successful such that the stream can be
     * fully read, and it represents a supported font format then a
     * <code>Font</code> object will be returned.
When I print this I do get a Font Object like mentioned in Font.java file
Copy code
Font[name=Lato Regular, family=Lato, style=Regular, size=16.0]
Is this only loading the font & not applying to the application?
@edvin Can you help me with this?
e
@aayush Sorry for the late reply. I'll be back tomorrow, could you create a small app with this problem? That will make it easier for me to spot the issue, and I'm really pressed for time now until after JavaOne.
a
No problem,Will do 🙂