View this PageEdit this Page (locked)Attachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

How to Print All Available Font Names

Just copy & paste these three lines, one at a time, into the 'interactions' window and execute:

> import java.awt.*;
> String arr[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
> for(int i=0; i < arr.length; i++) System.out.println("\"" + arr[i] + "\"");

"Arial Black"
"Arial Narrow"
"Book Antiqua"
"Bookman Old Style"
"Century Gothic"
"Comic Sans MS"
"Courier New"
"Estrangelo Edessa"
"Franklin Gothic Medium"
"Lucida Bright"
"Lucida Console"
"Lucida Sans"
"Lucida Sans Typewriter"
"Lucida Sans Unicode"
"Microsoft Sans Serif"
"Monotype Corsiva"
"MS Outlook"
"MV Boli"
"Palatino Linotype"
"Times New Roman"
"Trebuchet MS"
"Wingdings 2"
"Wingdings 3"

Links to this Page