showg [-c <fontfile.t1a>]... <fontfile.t1a> <glyph-to-draw>... >file.ps
gv file.ps # start the Ghostscript viewer
As you can see, multiple glyphs may be specified. The glyphs may be
specified in one of three ways:
- as a decimal code (for example, 43 )
- as a glyph name preceded by a slash (for example, /plus )
- as a literal character preceded by a dot (for example, .+ )
So for example the following command would draw the same glyph "left parenthesis" three times:
showg file.t1a 40 /parenleft .\( >/file.ps
Don't forget that some characters have to be protected from the shell by backslash as shown above, or else the shell would try to interpret them before passing to the program.
One file (given as the first argument) is considered the main file but multiple files can be specified with option -c for visual comparison of the outlines. The glyphs from the main file are drawn in black and supplemented with coordinate grid and sidebars for hints. The glyphs from the comparison files are drawn in slightly lighter colors (red, cyan, brown) and no supplemental information is provided for them. Each use of option -c adds one comparison file, this option may be used multiple times. If there are more than 3 comparison files the colors repeat cyclically.
So for example the following command would draw the same glyph "left parenthesis" from three files on the same page:
showg -c fileA.t1a -c fileB.t1a file.t1a .\( >/file.ps
This program is quite valuable it you want to take a close-up view at the font.
The outlines are drawn in black, the ends of the curves and lines are marked as dots, the first dots of the outlines are fatter. The Blue Zones are drawn in light blue. The substituted hints are marked in red, the global hints are marked in blue. The coordinate grid is drawn in green. The stems and the values of coordinates are for convenience marked twice, on each size of the picture.
showdf <showg-location> <fontfile1.t1a> <fontfile2.t1a> >file.ps
gv file.ps # start the Ghostscript viewer
If both showdf and showg scripts are located in the same directory, the command would look like:
./showdf ./showg font1.t1a font2.t1a >file.ps
For decent results both font files should be converted from the same original font and contain the same glyphs with the same names in the same order. Otherwise most probably all the glyphs will be included, or a failure may happen if some glyph is not found in one of the files. It is also a good idea to convert the fonts for comparison with hinting disabled, otherwise the differences in hinting may trigger the otherwise equal glyphs to be shown.