1Pbmtopk User Manual(0) Pbmtopk User Manual(0)
2
3
4
6 pbmtopk - convert a PBM image into a packed (PK) format font
7
9 pbmtopk pkfile[.pk] tfmfile[.tfm] resolution [-s designsize] [-p num
10 param...] [-C codingscheme] [-F family] [-f optfile] [-c num] [-W
11 width] [-H height] [-D depth] [-I ital] [-h horiz] [-v vert] [-x xoff]
12 [-y yoff] [pbmfile ...]
13
14
16 This program is part of Netpbm(1).
17
18 pbmtopk reads PBM images as input and produces a packed (PK) font file
19 and a TFM (TeX font metric) file as output. The resolution parameter
20 indicates the resolution of the font, in dots per inch. If the filename
21 '-' is used for any of the filenames, pbmtopk uses Standard Input or
22 Standard Output.
23
24
26 -s designsize
27 Sets the design size of the font, in TeX's points (72.27pt to
28 the inch). The default design size is 1. The TFM parameters are
29 given as multiples of the design size.
30
31
32 -p num param...
33 Sets the first num font parameters for the font. The first seven
34 parameters are the slant, interword spacing, interword space
35 stretchability, interword space shrinkability, x-height, quad
36 width, and post-sentence extra space of the font. Math and sym‐
37 bol fonts may have more parameters; see The TeXbook for a list
38 of these. Reasonable default values are chosen for parameters
39 which are not specified.
40
41
42 -C codingscheme
43 Sets the coding scheme comment in the TFM file.
44
45
46 -F family
47 Sets the font family comment in the TFM file.
48
49
50 -f optfile
51 Reads the file optfile, which should contain a lines of the
52 form:
53
54 filename xoff yoff horiz vert width height depth ital
55
56 The PBM files specified by the filename parameters are inserted
57 consecutively in the font with the specified attributes. If any
58 of the attributes are omitted, or replaced with '*', a default
59 value will be calculated from the size of the bitmap. The set‐
60 tings of the -W, -H, -D, -I, -h, -v, -x, and -y options do not
61 affected characters created in this way. The character number
62 can be changed by including a line starting with '=', followed
63 by the new number. Lines beginning with '%' or '#' are ignored.
64
65
66 -c num Sets the character number of the next bitmap encountered to num.
67
68
69 -W width
70 Sets the TFM width of the next character to width (in design
71 size multiples).
72
73
74 -H height
75 Sets the TFM height of the next character to height (in design
76 size multiples).
77
78
79 -D depth
80 Sets the TFM depth of the next character to depth (in design
81 size multiples).
82
83
84 -I ital
85 Sets the italic correction of the next character to ital (in
86 design size multiples).
87
88
89 -h horiz
90 Sets the horizontal escapement of the next character to horiz
91 (in pixels).
92
93
94 -v vert
95 Sets the vertical escapement of the next character to vert (in
96 pixels).
97
98
99 -x xoff
100 Sets the horizontal offset of the next character to xoff (in
101 pixels).
102
103
104 -y yoff
105 Sets the vertical offset of the next character to yoff (in pix‐
106 els, from the top row).
107
108
109
110
112 pktopbm(1), pbm(1)
113
114
116 Adapted from Tom Rokicki's pxtopk by Angus Duggan <ajcd@dcs.ed.ac.uk>.
117
118
119
120netpbm documentation 6 August 1990 Pbmtopk User Manual(0)