1HPFTODIT(1)                 General Commands Manual                HPFTODIT(1)
2
3
4

NAME

6       hpftodit - create font description files for use with groff -Tlj4
7

SYNOPSIS

9       hpftodit [-aqs] [-i n] tfm-file map-file output-font
10
11       hpftodit -d tfm-file [map-file]
12
13       hpftodit --help
14
15       hpftodit -v
16       hpftodit --version
17

DESCRIPTION

19       hpftodit   creates   a   font  file  for  use  with  a  Hewlett-Packard
20       LaserJet 4-series (or newer) printer with groff -Tlj4, using data  from
21       an  HP  tagged font metric (TFM) file.  tfm-file is the name of the TFM
22       file for the font; Intellifont and TrueType TFM  files  are  supported,
23       but  symbol set TFM files are not.  map-file is a file giving the groff
24       names for characters in the font; this file should  consist  of  a  se‐
25       quence of lines of the form:
26              m u c1 c2 ... [# comment]
27       where m is a decimal integer giving the MSL (Master Symbol List) number
28       of the character, u is a hexadecimal integer giving the  Unicode  value
29       of the character, and c1, c2, ...  are the groff names of the character
30       (see groff_char(7) for a list).  The values can  be  separated  by  any
31       whitespace;  the  Unicode value must use uppercase digits A–F, and must
32       be without a leading ‘0x’, ‘u’, or ‘U+’.  Unicode values  corresponding
33       to composite glyphs are decomposed; e.g., ‘u00C0’ becomes ‘u0041_0300’.
34       The name for a glyph without a groff name may be given as uXXXX if  the
35       glyph corresponds to a Unicode value, or as an unnamed glyph ‘---’.  If
36       the given Unicode value is in the Private Use Area (0xE000–0xF8FF), the
37       glyph  is included as an unnamed glyph.  Refer to groff_diff(1) for ad‐
38       ditional information about unnamed glyphs and how to access them.
39
40       Blank lines and lines beginning with ‘#’ are ignored.  A ‘#’  following
41       one or more groff names begins a comment.  Because ‘#’ is a valid groff
42       name, it must appear first in a list of groff names if a comment is in‐
43       cluded, e.g.,
44              3   0023   #   # number sign
45       or
46              3   0023   # sh   # number sign
47       rather than
48              3   0023   sh #   # number sign
49       which will treat the first ‘#’ as the beginning of the comment.
50
51       The  groff  font  file is written to the specified output-font; if this
52       operand is ‘-’, the font file is written to the standard output.
53
54       The -s option should be given if the font is special (a font  is  “spe‐
55       cial”  if  groff  should search it whenever a character is not found in
56       the current font).  If the font is special, it should be listed in  the
57       fonts  command in the DESC file; if it is not special, there is no need
58       to list it, since groff can automatically  mount  it  when  it's  first
59       used.
60
61       If  the  -i  option  is  used,  hpftodit automatically will generate an
62       italic correction, a left italic correction and a subscript  correction
63       for  each  character (the significance of these parameters is explained
64       in groff_font(5)).
65

OPTIONS

67       -a     Include characters in the TFM file that are not included in map-
68              file.   A  glyph  with  corresponding Unicode value is given the
69              name uXXXX; a glyph without a Unicode value is  included  as  an
70              unnamed  glyph  ‘---’.  A glyph with a Unicode value in the Pri‐
71              vate Use Area (0xE000–0xF8FF) also is  included  as  an  unnamed
72              glyph.
73
74              This  option provides a simple means of adding Unicode-named and
75              unnamed glyphs to a font without including them in the map file,
76              but  it affords little control over which glyphs are placed in a
77              regular font and which are placed in a special font.  The  pres‐
78              ence or absence of the -s option has some effect on which glyphs
79              are included: without the -s option, only the “text” symbol sets
80              are  searched  for matching glyphs; with the -s option, only the
81              “mathematical” symbol sets are searched.  Nonetheless, restrict‐
82              ing  the  symbol  sets searched isn't very selective—many glyphs
83              are placed in both regular and special fonts.  Normally, the  -a
84              option should be used only as a last resort.
85
86       -d     Dump information about the TFM file to the standard output; this
87              option can be useful for ensuring that a TFM file  is  a  proper
88              match  for  a  font,  and  that the contents of the TFM file are
89              suitable.  The information includes the values of important  TFM
90              tags,  and a listing (by MSL number for Intellifont TFM files or
91              by Unicode value for TrueType TFM files) of the glyphs  included
92              in  the  TFM file.  The unit of measure ‘DU’ for some tags indi‐
93              cates design units; there are 8782 design units per em  for  In‐
94              tellifont  fonts,  and  2048  design  units  per em for TrueType
95              fonts.  Note that the accessibility of a glyph  depends  on  its
96              inclusion  in  a symbol set; some TFM files list many glyphs but
97              only a few symbol sets.
98
99              The glyph listing includes the glyph index within the TFM  file,
100              the  MSL or Unicode value, and the symbol set and character code
101              that will be used to print the glyph.   If  map-file  is  given,
102              groff  names  are  given for matching glyphs.  If only the glyph
103              index and MSL or Unicode value are given, the glyph does not ap‐
104              pear in any supported symbol set and cannot be printed.
105
106              With the -d option, map-file is optional, and output-font is ig‐
107              nored if given.
108
109       -q     Suppress warnings about characters in the map file that were not
110              found  in  the  TFM  file.  Warnings never are given for unnamed
111              glyphs or by glyphs named by their Unicode values.  This  option
112              is  useful  when  sending the output of hpftodit to the standard
113              output.
114
115       -v     Print the hpftodit version number and exit.
116
117       -s     The font is special.  This option adds the  special  command  to
118              the font file, and affects the order in which HP symbol sets are
119              searched for each glyph.  Without the -s option, the “text” sets
120              are searched before the “mathematical” symbol sets.  With the -s
121              option, the search order is reversed.
122
123       -in    Generate an italic correction for each  character  so  that  the
124              character's  width  plus  the  character's  italic correction is
125              equal to n thousandths of an em plus the  amount  by  which  the
126              right  edge  of  the character's bounding is to the right of the
127              character's origin.  If this would result in a  negative  italic
128              correction, use a zero italic correction instead.
129
130              Also generate a subscript correction equal to the product of the
131              tangent of the slant of the font and four fifths of the x-height
132              of  the  font.   If  this would result in a subscript correction
133              greater than the italic correction, use a  subscript  correction
134              equal to the italic correction instead.
135
136              Also  generate a left italic correction for each character equal
137              to n thousandths of an em plus the amount by which the left edge
138              of  the  character's  bounding box is to the left of the charac‐
139              ter's origin.  The left italic correction may be negative.
140
141              This option normally is  needed  only  with  italic  or  oblique
142              fonts; a value of 50 (0.05 em) usually is a reasonable choice.
143

FILES

145       /usr/share/groff/1.22.4/font/devlj4/DESC
146              device description file
147
148       /usr/share/groff/1.22.4/font/devlj4/F
149              Font description file for font F
150
151       /usr/share/groff/1.22.4/font/devlj4/generate/*.map
152              symbol mapping files
153

SEE ALSO

155       groff(1), groff_diff(1), grolj4(1), groff_font(5), lj4_font(5)
156
157
158
159groff 1.22.4                     21 July 2022                      HPFTODIT(1)
Impressum