To list the avaiable fonts in Java you can use the following snippet.
Sample Java
GraphicsEnvironment g = GraphicsEnvironment.getLocalGraphicsEnvironment(); String fonts[] = g.getAvailableFontFamilyNames(); for (int Counter = 0; Counter < fonts.length;Counter++ ){ System.out.println(fonts[Counter]); }
RT @CodeSnippetsNET: How to list the avaiable fonts in #Java http://t.co/AFwWFLs9qG #programming #code #coding #dev