{
    "mode": "man",
    "parameter": "XTOTROFF",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/XTOTROFF/1/json",
    "generated": "2026-05-30T06:10:36Z",
    "synopsis": "xtotroff [-r resolution] [-s point-size] font-map",
    "sections": {
        "NAME": {
            "content": "xtotroff - convert X font metrics into GNU troff font metrics\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "xtotroff [-r resolution] [-s point-size] font-map\n",
            "subsections": [
                {
                    "name": "xtotroff --help",
                    "content": ""
                },
                {
                    "name": "xtotroff -v",
                    "content": ""
                },
                {
                    "name": "xtotroff --version",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "xtotroff  takes a font-map, which maps groff(1) fonts to X11 fonts, creates GNU troff(1) met‐\nric files for all fonts listed.  Each line in font-map consists of a groff font name and an X\nfont name as a X Logical Font Description (XLFD) pattern, separated by whitespace.  Example:\n\nTB -adobe-times-bold-r-normal--*-*-*-*-p-*-iso8859-1\n\nThe  wildcards in the patterns are filled with the arguments to the -r and -s switches.  If a\nfont name is still ambiguous, xtotroff aborts.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Whitespace is permitted between a command-line option and its argument.\n\n--help Display a usage message and exit.\n",
            "subsections": [
                {
                    "name": "-r",
                    "content": "Set the resolution for all font patterns in font-map.  The value is used for both  the\nhorizontal  and  vertical  resolution.  If not specified, a resolution of 75dpi is as‐\nsumed.\n",
                    "flag": "-r"
                },
                {
                    "name": "-s",
                    "content": "Set the point size for all font patterns in font-map.  If not  specified,  a  size  of\n10pt is assumed.\n",
                    "flag": "-s"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "--version",
                    "content": "Display version information and exit.\n",
                    "long": "--version"
                }
            ]
        },
        "BUGS": {
            "content": "The only supported font encodings are “iso8859-1” and “adobe-fontspecific”.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "groff(1), gxditview(1), troff(1)\n\n\n\ngroff 1.22.4                                23 March 2022                                XTOTROFF(1)",
            "subsections": []
        }
    },
    "summary": "xtotroff - convert X font metrics into GNU troff font metrics",
    "flags": [
        {
            "flag": "-r",
            "long": null,
            "arg": null,
            "description": "Set the resolution for all font patterns in font-map. The value is used for both the horizontal and vertical resolution. If not specified, a resolution of 75dpi is as‐ sumed."
        },
        {
            "flag": "-s",
            "long": null,
            "arg": null,
            "description": "Set the point size for all font patterns in font-map. If not specified, a size of 10pt is assumed."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Display version information and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "groff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/groff/1/json"
        },
        {
            "name": "gxditview",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gxditview/1/json"
        },
        {
            "name": "troff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/troff/1/json"
        }
    ]
}