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"
"Arial Black"
"Arial Narrow"
"Book Antiqua"
"Bookman Old Style"
"Century Gothic"
"Comic Sans MS"
"Courier New"
"Default"
"Dialog"
"DialogInput"
"Estrangelo Edessa"
"Franklin Gothic Medium"
"Garamond"
"Gautami"
"Georgia"
"Haettenschweiler"
"Impact"
"Latha"
"Lucida Bright"
"Lucida Console"
"Lucida Sans"
"Lucida Sans Typewriter"
"Lucida Sans Unicode"
"Mangal"
"Marlett"
"Microsoft Sans Serif"
"Monospaced"
"Monotype Corsiva"
"MS Outlook"
"MV Boli"
"Palatino Linotype"
"Raavi"
"SansSerif"
"Serif"
"Shruti"
"Sylfaen"
"Symbol"
"Tahoma"
"Times New Roman"
"Trebuchet MS"
"Tunga"
"Verdana"
"Wingdings"
"Wingdings 2"
"Wingdings 3"


Links to this Page