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

NAME

6       tfmtodit - create font files for use with groff -Tdvi
7

SYNOPSIS

9       nr a 1
10       tfmtodit [ -sv ] [ -ggf_file ] [ -kskewchar ] tfm_file map_file font
11

DESCRIPTION

13       tfmtodit creates a font file for use with groff -Tdvi.  tfm_file is the
14       name of the TeX font metric file for the font.  map_file is a file giv‐
15       ing the groff names for characters in the font; this file should con‐
16       sist of a sequence of lines of the form:
17
18              n c1 c2 ...
19
20       where n is a decimal integer giving the position of the character in
21       the font, and c1, c2,...  are the groff names of the character.  If a
22       character has no groff names but exists in the tfm file, then it will
23       be put in the groff font file as an unnamed character.  font is the
24       name of the groff font file.  The groff font file is written to font.
25
26       The -s option should be given if the font is special (a font is special
27       if troff should search it whenever a character is not found in the cur‐
28       rent font.)  If the font is special, it should be listed in the fonts
29       command in the DESC file; if it is not special, there is no need to
30       list it, since troff can automatically mount it when it's first used.
31
32       To do a good job of math typesetting, groff requires font metric infor‐
33       mation not present in the tfm file.  The reason for this is that TeX
34       has separate math italic fonts whereas groff uses normal italic fonts
35       for math.  The additional information required by groff is given by the
36       two arguments to the math_fit macro in the Metafont programs for the
37       Computer Modern fonts.  In a text font (a font for which math_fitting
38       is false), Metafont normally ignores these two arguments.  Metafont can
39       be made to put this information in the gf file by loading the following
40       definition after cmbase when creating cm.base:
41
42              def ignore_math_fit(expr left_adjustment,right_adjustment) =
43                  special "adjustment";
44                  numspecial left_adjustment*16/designsize;
45                  numspecial right_adjustment*16/designsize;
46                  enddef;
47
48       For the EC font family, load the following definition after exbase (it
49       is probably easiest to patch exbase.mf locally):
50
51              def ignore_math_fit(expr left_adjustment,right_adjustment) =
52                  ori_special "adjustment";
53                  ori_numspecial left_adjustment*16/designsize;
54                  ori_numspecial right_adjustment*16/designsize;
55                  enddef;
56
57       The gf file created using this modified cm.base or exbase should be
58       specified with the -g option.  The -g option should not be given for a
59       font for which math_fitting is true.
60

OPTIONS

62       It is possible to have whitespace between a command line option and its
63       parameter.
64
65       -v     Print the version number.
66
67       -s     The font is special.  The effect of this option is to add the
68              special command to the font file.
69
70       -kn    The skewchar of this font is at position n.  n should be an
71              integer; it may be given in decimal, or with a leading 0 in
72              octal, or with a leading 0x in hexadecimal.  The effect of this
73              option is to ignore any kerns whose second component is the
74              specified character.
75
76       -ggf_file
77              gf_file is a gf file produced by Metafont containing special and
78              numspecial commands giving additional font metric information.
79

FILES

81       /usr/share/groff/1.22.3/font/devdvi/DESC
82              Device description file.
83
84       /usr/share/groff/1.22.3/font/devdvi/F
85              Font description file for font F.
86

SEE ALSO

88       groff(1), grodvi(1), groff_font(5)
89

COPYING

91       Copyright © 1989-2014 Free Software Foundation, Inc.
92
93       Permission is granted to make and distribute verbatim copies of this
94       manual provided the copyright notice and this permission notice are
95       preserved on all copies.
96
97       Permission is granted to copy and distribute modified versions of this
98       manual under the conditions for verbatim copying, provided that the
99       entire resulting derived work is distributed under the terms of a per‐
100       mission notice identical to this one.
101
102       Permission is granted to copy and distribute translations of this man‐
103       ual into another language, under the above conditions for modified ver‐
104       sions, except that this permission notice may be included in transla‐
105       tions approved by the Free Software Foundation instead of in the origi‐
106       nal English.
107
108
109
110Groff Version 1.22.3            4 November 2014                    TFMTODIT(1)
Impressum