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 [ -adqsv ] [ -in ] tfm_file map_file font
10
11       It is possible to have whitespace between the -i option and its parame‐
12       ter.
13

DESCRIPTION

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

OPTIONS

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

FILES

149       /usr/share/groff/1.22.2/font/devlj4/DESC            Device description
150                                                           file.
151
152       /usr/share/groff/1.22.2/font/devlj4/F               Font description
153                                                           file for font F.
154
155       /usr/share/groff/1.22.2/font/devlj4/generate/*.map  Symbol mapping
156                                                           files
157

SEE ALSO

159       groff(1), groff_diff(1), grolj4(1), groff_font(5), lj4_font(5)
160
161
162
163Groff Version 1.22.2            7 February 2013                    HPFTODIT(1)
Impressum