# phpman > man > tfmtodit(1)

[TFMTODIT(1)](https://www.chedong.com/phpMan.php/man/TFMTODIT/1/markdown)                            General Commands Manual                           [TFMTODIT(1)](https://www.chedong.com/phpMan.php/man/TFMTODIT/1/markdown)



## NAME
       tfmtodit - create font files for use with groff -Tdvi

## SYNOPSIS
       **tfmtodit** [**-s**] [**-g** _gf_file_] [**-k** _skewchar_] _tfm_file_ _map_file_ _font_

### tfmtodit --help

### tfmtodit -v
### tfmtodit --version

## DESCRIPTION
       **tfmtodit**  creates a font file for use with **groff** **-Tdvi**.  _tfm_file_ is the name of the TeX font
       metric file for the font.  _map_file_ is a file giving the groff names for  characters  in  the
       font; this file should consist of a sequence of lines of the form:

              _n_ _c1_ _c2_ ...

       where _n_ is a decimal integer giving the position of the character in the font, and _c1_, _c2_,...
       are the groff names of the character.  If a character has no groff names but  exists  in  the
       tfm  file,  then  it will be put in the groff font file as an unnamed character.  _font_ is the
       name of the groff font file.  The groff font file is written to _font_.

       The **-s** option should be given if the font is special (a  font  is  _special_  if  **troff**  should
       search it whenever a character is not found in the current font.)  If the font is special, it
       should be listed in the **fonts** command in the DESC file; if it is not  special,  there  is  no
       need to list it, since **troff** can automatically mount it when it's first used.

       To  do  a good job of math typesetting, groff requires font metric information not present in
       the tfm file.  The reason for this is that TeX has separate math italic fonts  whereas  groff
       uses  normal italic fonts for math.  The additional information required by groff is given by
       the two arguments to the **math**___**fit** macro in the Metafont  programs  for  the  Computer  Modern
       fonts.   In  a  text font (a font for which **math**___**fitting** is false), Metafont normally ignores
       these two arguments.  Metafont can be made to put this information in the gf file by  loading
       the following definition after **cmbase** when creating _cm.base_:

              **def** **ignore**___**math**___**fit(expr** **left**___**adjustment,right**___**adjustment)** **=**
                  **special** **"adjustment";**
                  **numspecial** **left**___**adjustment*16/designsize;**
                  **numspecial** **right**___**adjustment*16/designsize;**
                  **enddef;**

       For the EC font family, load the following definition after **exbase** (it is probably easiest to
       patch _exbase.mf_ locally):

              **def** **ignore**___**math**___**fit(expr** **left**___**adjustment,right**___**adjustment)** **=**
                  **ori**___**special** **"adjustment";**
                  **ori**___**numspecial** **left**___**adjustment*16/designsize;**
                  **ori**___**numspecial** **right**___**adjustment*16/designsize;**
                  **enddef;**

       The gf file created using this modified _cm.base_ or _exbase_ should be specified with the **-g** op‐
       tion.  The **-g** option should not be given for a font for which **math**___**fitting** is true.

## OPTIONS
       Whitespace is permitted between a command-line option and its argument.

### -v

### -s
              font file.

### -k
              in  decimal,  or  with a leading **0** in octal, or with a leading **0x** in hexadecimal.  The
              effect of this option is to ignore any kerns whose second component is  the  specified
              character.

### -g
              _gf_file_  is  a gf file produced by Metafont containing special and numspecial commands
              giving additional font metric information.

## FILES
       _/usr/share/groff/1.22.4/font/devdvi/DESC_
              Device description file.

       _/usr/share/groff/1.22.4/font/devdvi/_F
              Font description file for font _F_.

## SEE ALSO
       [**groff**(1)](https://www.chedong.com/phpMan.php/man/groff/1/markdown), [**grodvi**(1)](https://www.chedong.com/phpMan.php/man/grodvi/1/markdown), **groff**___**[font**(5)](https://www.chedong.com/phpMan.php/man/font/5/markdown)



groff 1.22.4                                23 March 2022                                [TFMTODIT(1)](https://www.chedong.com/phpMan.php/man/TFMTODIT/1/markdown)
