So i use this font for my layout but it isn't a standart font. I have to import it from a file only it doesn't work. The file is in my game map. This is my code:
import java.awt.*;
import java.io.*;
(...)
Font font = Font.createFont(Font.TRUETYPE_FONT, new File("A.ttf"));