{
    "content": [
        {
            "type": "text",
            "text": "# HPFTODIT (info)\n\n## NAME\n\nhpftodit - create font description files for use with groff -Tlj4\n\n## SYNOPSIS\n\nhpftodit [-aqs] [-i n] tfm-file map-file output-font\nhpftodit -d tfm-file [map-file]\nhpftodit --help\nhpftodit -v\nhpftodit --version\n\n## DESCRIPTION\n\nhpftodit   creates   a   font  file  for  use  with  a  Hewlett-Packard\nLaserJet 4-series (or newer) printer with groff -Tlj4, using data  from\nan  HP  tagged font metric (TFM) file.  tfm-file is the name of the TFM\nfile for the font; Intellifont and TrueType TFM  files  are  supported,\nbut  symbol set TFM files are not.  map-file is a file giving the groff\nnames for characters in the font; this file should  consist  of  a  se-\nquence of lines of the form:\nm u c1 c2 ... [# comment]\nwhere m is a decimal integer giving the MSL (Master Symbol List) number\nof the character, u is a hexadecimal integer giving the  Unicode  value\nof the character, and c1, c2, ...  are the groff names of the character\n(see groffchar(7) for a list).  The values can  be  separated  by  any\nwhitespace;  the  Unicode value must use uppercase digits A-F, and must\nbe without a leading '0x', 'u', or 'U+'.  Unicode values  corresponding\nto composite glyphs are decomposed; e.g., 'u00C0' becomes 'u00410300'.\nThe name for a glyph without a groff name may be given as uXXXX if  the\nglyph corresponds to a Unicode value, or as an unnamed glyph '---'.  If\nthe given Unicode value is in the Private Use Area (0xE000-0xF8FF), the\nglyph  is included as an unnamed glyph.  Refer to groffdiff(1) for ad-\nditional information about unnamed glyphs and how to access them.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **FILES**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "HPFTODIT",
        "section": "",
        "mode": "info",
        "summary": "hpftodit - create font description files for use with groff -Tlj4",
        "synopsis": "hpftodit [-aqs] [-i n] tfm-file map-file output-font\nhpftodit -d tfm-file [map-file]\nhpftodit --help\nhpftodit -v\nhpftodit --version",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "groff",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/groff/1/json"
            },
            {
                "name": "groffdiff",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/groffdiff/1/json"
            },
            {
                "name": "grolj4",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/grolj4/1/json"
            },
            {
                "name": "grofffont",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/grofffont/5/json"
            },
            {
                "name": "lj4font",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/lj4font/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 47,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 77,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "hpftodit - create font description files for use with groff -Tlj4\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "hpftodit [-aqs] [-i n] tfm-file map-file output-font\n\nhpftodit -d tfm-file [map-file]\n\nhpftodit --help\n\nhpftodit -v\nhpftodit --version\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "hpftodit   creates   a   font  file  for  use  with  a  Hewlett-Packard\nLaserJet 4-series (or newer) printer with groff -Tlj4, using data  from\nan  HP  tagged font metric (TFM) file.  tfm-file is the name of the TFM\nfile for the font; Intellifont and TrueType TFM  files  are  supported,\nbut  symbol set TFM files are not.  map-file is a file giving the groff\nnames for characters in the font; this file should  consist  of  a  se-\nquence of lines of the form:\nm u c1 c2 ... [# comment]\nwhere m is a decimal integer giving the MSL (Master Symbol List) number\nof the character, u is a hexadecimal integer giving the  Unicode  value\nof the character, and c1, c2, ...  are the groff names of the character\n(see groffchar(7) for a list).  The values can  be  separated  by  any\nwhitespace;  the  Unicode value must use uppercase digits A-F, and must\nbe without a leading '0x', 'u', or 'U+'.  Unicode values  corresponding\nto composite glyphs are decomposed; e.g., 'u00C0' becomes 'u00410300'.\nThe name for a glyph without a groff name may be given as uXXXX if  the\nglyph corresponds to a Unicode value, or as an unnamed glyph '---'.  If\nthe given Unicode value is in the Private Use Area (0xE000-0xF8FF), the\nglyph  is included as an unnamed glyph.  Refer to groffdiff(1) for ad-\nditional information about unnamed glyphs and how to access them.\n\nBlank lines and lines beginning with '#' are ignored.  A '#'  following\none or more groff names begins a comment.  Because '#' is a valid groff\nname, it must appear first in a list of groff names if a comment is in-\ncluded, e.g.,\n3   0023   #   # number sign\nor\n3   0023   # sh   # number sign\nrather than\n3   0023   sh #   # number sign\nwhich will treat the first '#' as the beginning of the comment.\n\nThe  groff  font  file is written to the specified output-font; if this\noperand is '-', the font file is written to the standard output.\n\nThe -s option should be given if the font is special (a font  is  \"spe-\ncial\"  if  groff  should search it whenever a character is not found in\nthe current font).  If the font is special, it should be listed in  the\nfonts  command in the DESC file; if it is not special, there is no need\nto list it, since groff can automatically  mount  it  when  it's  first\nused.\n\nIf  the  -i  option  is  used,  hpftodit automatically will generate an\nitalic correction, a left italic correction and a subscript  correction\nfor  each  character (the significance of these parameters is explained\nin grofffont(5)).\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "-a     Include characters in the TFM file that are not included in map-\nfile.   A  glyph  with  corresponding Unicode value is given the\nname uXXXX; a glyph without a Unicode value is  included  as  an\nunnamed  glyph  '---'.  A glyph with a Unicode value in the Pri-\nvate Use Area (0xE000-0xF8FF) also is  included  as  an  unnamed\nglyph.\n\nThis  option provides a simple means of adding Unicode-named and\nunnamed glyphs to a font without including them in the map file,\nbut  it affords little control over which glyphs are placed in a\nregular font and which are placed in a special font.  The  pres-\nence or absence of the -s option has some effect on which glyphs\nare included: without the -s option, only the \"text\" symbol sets\nare  searched  for matching glyphs; with the -s option, only the\n\"mathematical\" symbol sets are searched.  Nonetheless, restrict-\ning  the  symbol sets searched isn't very selective--many glyphs\nare placed in both regular and special fonts.  Normally, the  -a\noption should be used only as a last resort.\n\n-d     Dump information about the TFM file to the standard output; this\noption can be useful for ensuring that a TFM file  is  a  proper\nmatch  for  a  font,  and  that the contents of the TFM file are\nsuitable.  The information includes the values of important  TFM\ntags,  and a listing (by MSL number for Intellifont TFM files or\nby Unicode value for TrueType TFM files) of the glyphs  included\nin  the  TFM file.  The unit of measure 'DU' for some tags indi-\ncates design units; there are 8782 design units per em  for  In-\ntellifont  fonts,  and  2048  design  units  per em for TrueType\nfonts.  Note that the accessibility of a glyph  depends  on  its\ninclusion  in  a symbol set; some TFM files list many glyphs but\nonly a few symbol sets.\n\nThe glyph listing includes the glyph index within the TFM  file,\nthe  MSL or Unicode value, and the symbol set and character code\nthat will be used to print the glyph.   If  map-file  is  given,\ngroff  names  are  given for matching glyphs.  If only the glyph\nindex and MSL or Unicode value are given, the glyph does not ap-\npear in any supported symbol set and cannot be printed.\n\nWith the -d option, map-file is optional, and output-font is ig-\nnored if given.\n\n-q     Suppress warnings about characters in the map file that were not\nfound  in  the  TFM  file.  Warnings never are given for unnamed\nglyphs or by glyphs named by their Unicode values.  This  option\nis  useful  when  sending the output of hpftodit to the standard\noutput.\n\n-v     Print the hpftodit version number and exit.\n\n-s     The font is special.  This option adds the  special  command  to\nthe font file, and affects the order in which HP symbol sets are\nsearched for each glyph.  Without the -s option, the \"text\" sets\nare searched before the \"mathematical\" symbol sets.  With the -s\noption, the search order is reversed.\n\n-in    Generate an italic correction for each  character  so  that  the\ncharacter's  width  plus  the  character's  italic correction is\nequal to n thousandths of an em plus the  amount  by  which  the\nright  edge  of  the character's bounding is to the right of the\ncharacter's origin.  If this would result in a  negative  italic\ncorrection, use a zero italic correction instead.\n\nAlso generate a subscript correction equal to the product of the\ntangent of the slant of the font and four fifths of the x-height\nof  the  font.   If  this would result in a subscript correction\ngreater than the italic correction, use a  subscript  correction\nequal to the italic correction instead.\n\nAlso  generate a left italic correction for each character equal\nto n thousandths of an em plus the amount by which the left edge\nof  the  character's  bounding box is to the left of the charac-\nter's origin.  The left italic correction may be negative.\n\nThis option normally is  needed  only  with  italic  or  oblique\nfonts; a value of 50 (0.05 em) usually is a reasonable choice.\n",
                "subsections": []
            },
            "FILES": {
                "content": "/usr/share/groff/1.22.4/font/devlj4/DESC\ndevice description file\n\n/usr/share/groff/1.22.4/font/devlj4/F\nFont description file for font F\n\n/usr/share/groff/1.22.4/font/devlj4/generate/*.map\nsymbol mapping files\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "groff(1), groffdiff(1), grolj4(1), grofffont(5), lj4font(5)\n\ngroff 1.22.4                     23 March 2022                     HPFTODIT(1)",
                "subsections": []
            }
        }
    }
}