tryfont.icn: Program to demonstrate X font rankings

July 18, 1995; Gregg M. Townsend
Requires: Version 9 graphics
This file is in the public domain.
   tryfont repeatedly reads a font specification from standard input
and displays, with their scores, a windowfull of available fonts that
best match that specification.  The window can be resized when tryfont
is paused at a prompt; the new size is used for the next list.

   Note that tryfont uses the library procedure BestFont() for ranking;
this can differ from the rankings used by the Icon runtime system's
font selection logic.

   tryfont can also be run in ASCII mode, without using X windows, by
passing a file name as a command argument.  The file should contain
a list of X fonts, such as from the xlsfonts program.  The number of
fonts printed on standard output can be specified as a second argument.

   For details of font specifications, see BestFont().

Source code | Program Library Page | Icon Home Page