{
    "mode": "man",
    "parameter": "mktextfm",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/mktextfm/1/json",
    "generated": "2026-05-30T06:10:38Z",
    "synopsis": "mktextfm [options] font",
    "sections": {
        "NAME": {
            "content": "mktextfm - create a TFM file for a font\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "mktextfm [options] font\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "mktextfm  is  used  to  generate  a  tfm  file  from  the  Metafont source files for font, or\nhbf2gf(1), if possible.  If destdir is given, the generated file  will  be  installed  there,\notherwise  a  (rather  complicated) heuristic is used.  If the tfm file already exists in the\ndestination location, this is reported and nothing is done.\n\nIf a GF (Generic Font) bitmap file is also generated, as is typical with ΜF, it is  converted\nto PK (Packed Font) and installed similarly.\n\nThe full pathname of the generated file is printed on standard output.\n\nIf available, the mf-nowin(1) variant of Metafont is used to generate fonts to avoid the pos‐\nsibility of online display.\n\nmktextfm is typically called by other programs, via Kpathsea, rather than  from  the  command\nline.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "mktextfm accepts the following options:\n\n--destdir dir\nA  directory  name.  If the directory is absolute, it is used as-is.  Otherwise, it is\nappended to the root destination directory set in the script.\n\n--help Print help message and exit successfully.\n",
            "subsections": [
                {
                    "name": "--version",
                    "content": "Print version information and exit successfully.\n",
                    "long": "--version"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "One environment variable is specific to mktextfm: MFMODEEXTRAINFO.  If this is  set  to  a\nnon-empty  value,  a  Metafont macro modeincludeextrainfo will be invoked when the font is\nmade.  The standard modes.mf file defines this, as of modes.mf version 4.0, released in 2020.\nThis causes the so-called Xerox-world information, notably including the CODINGSCHEME for the\nfont, to be included in the tfm file. (This is not done by default since it is too  intrusive\nto  redefine  the  necessary primitives, per Don Knuth.) The mftrace(1) program, for example,\ncan use this to get a clue about the font encoding, although the information  is  not  always\nperfectly definitive or unambiguous.\n\nFor  more about the encodings of Metafont fonts, see the section ``Bitmap font encodings'' in\nthe Dvips manual (e.g., https://tug.org/texinfohtml/dvips.html).\n\nThe many other environment variables and various configuration files that control a TeX  sys‐\ntem also affect the behavior of mktextfm, as usual.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "mf(1), mktexmf(1), mktexpk(1).\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "Report bugs to: tex-k@tug.org (https://lists.tug.org/tex-k)\nTeX Live home page: https://tug.org/texlive/\n\n\n\nTeX Live                                   30 January 2020                               MKTEXTFM(1)",
            "subsections": []
        }
    },
    "summary": "mktextfm - create a TFM file for a font",
    "flags": [
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Print version information and exit successfully."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "mf",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/mf/1/json"
        },
        {
            "name": "mktexmf",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/mktexmf/1/json"
        },
        {
            "name": "mktexpk",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/mktexpk/1/json"
        }
    ]
}