I can only guess at what you need and give basic examples, before we can help much more you will need to give us more details or an example of how you are currently trying to install/load the font, and how you apply it to your rendered images.
Are you installing the font every time your application runs? This should not be the case, you can do everything from within Java.
Java loads most fonts by itself, so if you are using an already installed/existing font then you can load and use it the normal way, like this:
Font font = new Font("Dialog", Font.PLAIN, 12);
your2Dgraphics.setFont(font);
your2Dgraphics.drawString(String str, int x, int y)
If you want to load the fonts manually from within your program or another directory then you should be doing it like this:
GraphicsEnvironment graphicsEnviro = GraphicsEnvironment.getLocalGraphicsEnvironment();
graphicsEnviro.registerFont(Font.TRUETYPE_FONT, new File("myFontToLoad.ttf"));
Once when you start the program load the font into memory, so you do not have to load it from file every time you need to use it.
I recommend a quick read about fonts in Java, take a look here:
https://docs.oracle.com/javase/tutorial/2d/text/fonts.html