Table of contents


NAME

tfmpk - display TeX font metrics and character shapes

SYNTAX

tfmpk [ -color item color ] [ -flags uf ] [ -fontPerScreen num denom ] [ -help ] [ -load file.tfm file.nnnpk ] [ -pkpath PKpath ] [ -tabmaxgeo widthxheight ] [ -tfmpath TFMpath ] [ -zoom n ]

DESCRIPTION

tfmpk displays TeX font metrics and character shapes in multiple windows.

The initial window, labelled TFM-PK - Main, displays a menu bar with File, Options, Windows, and Help buttons. The window contains TFM and PK file search paths, and tables of widths, heights, depths, italic corrections, ligatures and kerns, kerns, and extension metrics, plus two buttons labelled KernShow and ExtenShow. The tables are initially empty, unless specific files have been supplied by the -load option.

Selecting the Open item in the File menu produces a new window, labelled TfmPk - Load Font, with input boxes for the names of TFM and PK files, TFM and PK paths, font name patterns, DPI patterns, plus buttons labelled (Re)List, Load, OK, and Close. Selecting the (Re)List button produces a scrollable list of PK files. Use the UpArrow and DownArrow keys to move the list a line at a time, the PageUp and PageDown keys to move it a block at a time, or type the leading characters of a file name to move to that file in the list. Open the font by double clicking, or single click on a font name, and single click on the Load button.

Opening a font produces two new windows, labelled TfmPK Focus Character and TfmPK Table. The latter shows a table of all of the characters in the selected font, and the former shows the details of a single character, which starts out as the first in the table. Clicking on any character in the font table shows it enlarged, with its metrics, in the TfmPK Focus Character window. Moving the mouse around in that window identifies character regions, which are named near the bottom of the window.


OPTIONS

-color item color
To be completed ...
-flags uf
To be completed ...
-fontPerScreen num denom
To be completed ...
-help
Display a brief help message on stdout and terminate immediately.
-load file.tfm file.nnnpk
Preload the named TFM and PK files. These names must contain directory paths if they are not in the current directory, since no path searching is currently done to find them.
-pkpath PKpath
Define a colon-separated list of directories to search for PK files.
-tabmaxgeo widthxheight
Limit the size of the TfmPK Table window to the indicated width and height (both in screen pixels). tfmpk will shrink character cells if necessary, so as to be able to display the complete table. If you make this ridiculously small, by, e.g. -tabmaxgeo 50x75, you may not be able to recognize characters other than by their row/column positions in the table, but you can still select them by double clicking.
-tfmpath TFMpath
Define a colon-separated list of directories to search for TFM files.
-zoom n
Increase the default size of the TfmPK Focus Character window by a factor of n.

IMPLEMENTATION NOTES

tfmpk is implemented in the C++ programming language, and uses the Tcl/Tk libraries to provide window system access. Since those libraries are available in source and binary form for UNIX, Microsoft Windows (3.1, 95, and NT), and Apple Macintosh window environments, with a satisfactory C++ implementation, it should be possible to build tfmpk on all common workstation and personal computer platforms. However, during development, only UNIX implementations are being tested.

Tcl/Tk development began at the University of California at Berkeley, and is now commercially supported by Sun Microsystems. The software remains freely available, at http://sunscript.sun.com/, ftp://ftp.sunlabs.com/pub/tcl, and ftp://ftp.neosoft.com/languages/tcl.

The Tcl language is described in these books:


Eric F. Johnson
Graphical Applications with Tcl and Tk
MT Books
Redwood City, CA 94063, USA
1996
x + 374 pp.
ISBN 1-55851-471-6

Don Libes
Exploring Expect: A Tcl-based Toolkit for Automating Interactive Programs
O'Reilly  Associates, Inc.
Sebastopol, CA, USA
1994
xxxiii + 566 pp.
ISBN 1-56592-090-2

John K. Ousterhout
Tcl and the Tk Toolkit
Addison-Wesley, Reading, MA, USA
1994
xx + 458 pp.
ISBN 0-201-63337-X

Brent B. Welch
Practical Programming in Tcl and Tk
Prentice-Hall PTR
Upper Saddle River, NJ, USA
1995
xxxvi + 428 pp.
ISBN 0-13-182007-9

ENVIRONMENT

HOME
Directory path to user's login directory.
PATH
Colon-separated directory path list to system executable programs.
TCL_LIBRARY
Directory path to Tcl/Tk libraries.

FILES

These files must be found in the system executable search path, PATH. They are normally installed in the same directory as the tfmpk program itself.
dnarrow.xbm
Bitmap definition of down arrow.
tfmpk.gif
Bitmap definition of tfmpk icon.
tfmpk.tcl
Tcl code used by tfmpk.
uparrow.xbm
Bitmap definition of up arrow.

SEE ALSO

afm2tfm(1), mf(1), mft(1), pktype(1), pltotf(1), tftopl(1), tfmtodit(1), vftovp(1), vptovf(1).

AUTHOR

Yotam Medini
yotam@blueneptune.com