How can I get fonts for text from a client PC using a Java applet?

I try to get system fonts in the client side of the applet form, but this does not help with the applet.

+3
source share
1 answer

Are you trying to get fonts with

GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment();
Font[] fonts = e.getAllFonts(); // Get the fonts

In this applet , it works correctly.

+2
source

Source: https://habr.com/ru/post/1732503/


All Articles