Download or view showFonts.frink in plain text format
/** This program lists all of the fonts available and displays a sample of
them as a graphic. If arguments are passed in on the command-line, they
are added to the string. */
g = new graphics
ge=callJava["java.awt.GraphicsEnvironment", "getLocalGraphicsEnvironment"]
y = 0
for fontname = ge.getAvailableFontFamilyNames[]
{
g.font[fontname,1]
text = fontname
if length[ARGS] > 0
text = text + " " + join[" ", ARGS]
g.text[text, 0, y]
y = y + 1
}
g.show[]
Download or view showFonts.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 20145 days, 12 hours, 13 minutes ago.