I saved in the resource my font files *.ttf and I want to get it back when my application was started but I couldn't do this. I have the following code:
final URL fontUrl = getClass().getClassLoader().getResource("/fonts/" + font);
                if (fontUrl == null) {
                    continue;
                }
                File fontFile = new File(fontUrl.getFile());
System.out.println(fontFile.exists());    // return false
System.out.println(fontFile.length());    // return 0
return fontFile;
How can I get a normal file from resource?
 
    