RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Friday, June 1, 2012
Java Find List of Available Fonts
To find out the list of available fonts available to Java:
Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvi
ronment().getAllFonts();
for (int i = 0; i < fonts.length; i++) {
System.out.println(fonts[i].getName());
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment