home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume20
/
hp2pk
/
part02
/
hp2pk.lpt
< prev
next >
Wrap
Text File
|
1991-06-02
|
5KB
|
133 lines
HP2PK(1L) HP2PK(1L)
NAME
hp2pk - convert Hewlett-Packard soft fonts into TeX fonts
SYNOPSIS
hp2pk [-b density] [-d size] [-h] [-l pl-file[.pl]]
[-m magnification] [-p pk-file[.pk]] [-r {l|u}]
[-s space-width] [-t tfm-file[.tfm]] [-v] sfp-file[.sfp]
DESCRIPTION
HP2PK converts Hewlett-Packard Soft Font/Portrait (SFP) files
into the TFM and PK files needed by TeX. (Okay, okay, so TeX
itself doesn't need PK files--the DVI driver programs associated
with TeX generally do!) Only bitmap fonts, either Class 1 bitmap
or Class 2 compressed bitmap, are handled by HP2PK. The program
cannot process Intellifont Scalable Fonts.
For all files read or written by HP2PK, an appropriate filename
extension is automatically appended to the filename if one is not
specified explicitly.
OPTIONS
The command line options are described below.
-b density
The -b option specifies the pixel density of the font in
dots per inch. If this is not given on the command line,
HP2PK assumes a value of 300 dpi.
-d size
The -d option specifies the design size of the font in
points. If this is not given on the command line, HP2PK
calculates a value from the information given in the input
font header, writing the computed value to the standard
output.
-h The -h option causes a brief description of the command line
options to be written to the standard error output (normally
the screen). No other action is performed when this option
is used.
-m magnification
The -m option specifies the magnification of the font. The
default value is 1000, which indicates no magnification.
-l pl-file
The -l option specifies a Property List (PL) font metric
output file. This is a human-readable form of a TeX font
metric file.
-p pk-file
The -p option specifies the font PacKed bitmap (PK) output
file. If it is not given on the command line, HP2PK
Page 1 (printed 4/12/91)
HP2PK(1L) HP2PK(1L)
produces a PK file with the same basic name as the input
file, but with a ".pk" filetype extension.
-r {l|u}
The -rl option specifies that only the lower 128 character
codes be converted and written to the output files. The -ru
option specifies that only the upper 128 character codes be
converted, with the codes translated from the range 128-255
to the range 0-127. This allows font files to be prepared
for antiquated DVI drivers that cannot handle 8-bit fonts.
-s space-width
The -s option specifies the basic width of a space character
in points, if none exists in the soft font. Character code
32 (octal 040) is assumed to be a space character if it
exists. If the space character is not defined in the font,
and the -s option is not used, then the width of the x
character (decimal code 120, octal code 170) is used.
-t tfm-file
The -t option specifies the TeX Font Metric (TFM) output
file. If neither a TFM (-t) nor a PL (-l) file is given on
the command line, HP2PK produces a TFM file with the same
basic name as the input file, but with a ".tfm" filetype
extension.
-v The -v option tells HP2PK to be more talkative as it works.
SEE ALSO
TFtoPL(1), PLtoTF(1), GFtoPK(1)
BUGS
The Hewlett-Packard Soft Font file provides neither kerning
nor ligature information. It also does not supply the slant
information for italic fonts. If needed, these values must
be supplied by editing the PL file and then running PLtoTF to
produce the TFM file.
The font's pixel density must be a integral number of dots per
inch.
Bitmaps larger than 32767 bytes are not (yet) handled. (Such
a bitmap would be larger than 510 dots square!)
AUTHOR
Stephen McConnel (steve@txsil.sil.org)
Summer Institute of Linguistics
7500 W. Camp Wisdom Road
Dallas, TX 75236, U.S.A.
Page 2 (printed 4/12/91)