Created
April 6, 2016 21:16
-
-
Save PreSoichiSumi/541a0e8955f9a7a7ab04ca4e9b9304b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Font; | |
import java.awt.GraphicsEnvironment; | |
public class MainClass { | |
public static void main(String[] a) { | |
GraphicsEnvironment e = GraphicsEnvironment.getLocalGraphicsEnvironment(); | |
Font[] fonts = e.getAllFonts(); // Get the fonts | |
for (Font f : fonts) { | |
System.out.println(f.getFontName()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment