# mktextfm(1) - man - phpMan

[MKTEXTFM(1)](https://www.chedong.com/phpMan.php/man/MKTEXTFM/1/markdown)                                 User Commands                                [MKTEXTFM(1)](https://www.chedong.com/phpMan.php/man/MKTEXTFM/1/markdown)



## NAME
       mktextfm - create a TFM file for a font

## SYNOPSIS
       **mktextfm** [_options_] _font_

## DESCRIPTION
       **mktextfm**  is  used  to  generate  a  tfm  file  from  the  Metafont source files for _font_, or
       [**hbf2gf**(1)](https://www.chedong.com/phpMan.php/man/hbf2gf/1/markdown), if possible.  If _destdir_ is given, the generated file  will  be  installed  there,
       otherwise  a  (rather  complicated) heuristic is used.  If the tfm file already exists in the
       destination location, this is reported and nothing is done.

       If a GF (Generic Font) bitmap file is also generated, as is typical with ΜF, it is  converted
       to PK (Packed Font) and installed similarly.

       The full pathname of the generated file is printed on standard output.

       If available, the [**mf-nowin**(1)](https://www.chedong.com/phpMan.php/man/mf-nowin/1/markdown) variant of Metafont is used to generate fonts to avoid the pos‐
       sibility of online display.

       **mktextfm** is typically called by other programs, via Kpathsea, rather than  from  the  command
       line.

## OPTIONS
       **mktextfm** accepts the following options:

       **--destdir** _dir_
              A  directory  name.  If the directory is absolute, it is used as-is.  Otherwise, it is
              appended to the root destination directory set in the script.

       **--help** Print help message and exit successfully.

### --version
              Print version information and exit successfully.

## ENVIRONMENT
       One environment variable is specific to **mktextfm**: **MF**___**MODE**___**EXTRA**___**INFO**.  If this is  set  to  a
       non-empty  value,  a  Metafont macro **mode**___**include**___**extra**___**info** will be invoked when the font is
       made.  The standard **modes.mf** file defines this, as of modes.mf version 4.0, released in 2020.
       This causes the so-called Xerox-world information, notably including the **CODINGSCHEME** for the
       font, to be included in the tfm file. (This is not done by default since it is too  intrusive
       to  redefine  the  necessary primitives, per Don Knuth.) The [**mftrace**(1)](https://www.chedong.com/phpMan.php/man/mftrace/1/markdown) program, for example,
       can use this to get a clue about the font encoding, although the information  is  not  always
       perfectly definitive or unambiguous.

       For  more about the encodings of Metafont fonts, see the section ``Bitmap font encodings'' in
       the Dvips manual (e.g., <https://tug.org/texinfohtml/dvips.html>).

       The many other environment variables and various configuration files that control a TeX  sys‐
       tem also affect the behavior of **mktextfm**, as usual.

## SEE ALSO
       [**mf**(1)](https://www.chedong.com/phpMan.php/man/mf/1/markdown), [**mktexmf**(1)](https://www.chedong.com/phpMan.php/man/mktexmf/1/markdown), [**mktexpk**(1)](https://www.chedong.com/phpMan.php/man/mktexpk/1/markdown).

## REPORTING BUGS
       Report bugs to: <tex-k@tug.org> (<https://lists.tug.org/tex-k>)
       TeX Live home page: <https://tug.org/texlive/>



TeX Live                                   30 January 2020                               [MKTEXTFM(1)](https://www.chedong.com/phpMan.php/man/MKTEXTFM/1/markdown)
