{
    "mode": "info",
    "parameter": "lj4_font",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/lj4_font/json",
    "generated": "2026-07-05T15:54:57Z",
    "sections": {
        "NAME": {
            "content": "lj4font - groff fonts for use with devlj4\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Nominally,  all  Hewlett-Packard  LaserJet  4-series and newer printers\nhave the same internal fonts:  45  scalable  fonts  and  one  bitmapped\nLineprinter  font.   The  scalable fonts are available in sizes between\n0.25  points  and  999.75  points,  in   0.25-point   increments;   the\nLineprinter font is available only in 8.5-point size.\n\nThe  LaserJet  font  files included with groff assume that all printers\nsince the LaserJet 4 are identical.  There are some differences between\nfonts in the earlier and more recent printers, however.  The LaserJet 4\nprinter used Agfa Intellifont technology for 35 of the  internal  scal-\nable  fonts;  the remaining 10 scalable fonts were TrueType.  Beginning\nwith the LaserJet 4000-series printers introduced in 1997, all scalable\ninternal fonts have been TrueType.  The number of printable glyphs dif-\nfers slightly between Intellifont and TrueType  fonts  (generally,  the\nTrueType  fonts  include more glyphs), and there are some minor differ-\nences in glyph metrics.  Differences among printer models are described\nin  the  PCL 5 Comparison Guide and the PCL 5 Comparison Guide Addendum\n(for printers introduced since approximately 2001).\n\nLaserJet printers reference a glyph by a  combination  of  a  256-glyph\nsymbol  set and an index within that symbol set.  Many glyphs appear in\nmore than one symbol set; all combinations of symbol set and index that\nreference  the  same glyph are equivalent.  For each glyph, hpftodit(1)\nsearches a list of symbol sets, and selects the first set that contains\nthe  glyph.  The printing code generated by hpftodit is an integer that\nencodes a numerical value for the symbol set in the high  byte(s),  and\nthe  index  in the low byte.  See grofffont(5) for a complete descrip-\ntion of the font file format; symbol sets are described in greater  de-\ntail in the PCL 5 Printer Language Technical Reference Manual.\n\nTwo of the scalable fonts, Symbol and Wingdings, are bound to 256-glyph\nsymbol sets; the remaining scalable fonts, as well as  the  Lineprinter\nfont,  support  numerous  symbol sets, sufficient to enable printing of\nmore than 600 glyphs.\n\nThe metrics generated by hpftodit assume that the  DESC  file  contains\nvalues  of  1200  for  res  and  6350 for unitwidth, or any combination\n(e.g., 2400 and 3175) for which res x unitwidth = 7620000.  Although HP\nPCL  5  LaserJet  printers support an internal resolution of 7200 units\nper inch, they use a 16-bit signed integer for cursor  positioning;  if\ndevlj4  is to support U.S. ledger paper (11 in x 17 in; in = inch), the\nmaximum usable resolution is 32767 / 17, or 1927 units per inch,  which\nrounds down to 1200 units per inch.  If the largest required paper size\nis less (e.g., 8.5 in x 11 in,  or  A5),  a  greater  res  (and  lesser\nunitwidth) can be specified.\n",
            "subsections": []
        },
        "LIMITATIONS": {
            "content": "Font  metrics for Intellifont fonts were provided by Tagged Font Metric\n(TFM) files originally developed by Agfa/Compugraphic.  The  TFM  files\nprovided  for these fonts supported 600+ glyphs and contained extensive\nlists of kerning pairs.\n\nTo accommodate developers who had become accustomed to  TFM  files,  HP\nalso  provided  TFM  files  for  the  10 TrueType fonts included in the\nLaserJet 4.  The TFM files for TrueType fonts generally  included  less\ninformation  than the Intellifont TFMs, supporting fewer glyphs, and in\nmost cases, providing no kerning information.  By the time  the  Laser-\nJet  4000 printer was introduced, most developers had migrated to other\nmeans of obtaining font metrics, and support for new TFM files was very\nlimited.   The  TFM files provided for the TrueType fonts in the Laser-\nJet 4000 support only the Latin 2 (ISO 8859-2) symbol set, and  include\nno  kerning information; consequently, they are of little value for any\nbut the most rudimentary documents.\n\nBecause the Intellifont TFM files contain  considerably  more  informa-\ntion,  they generally are preferable to the TrueType TFM files even for\nuse with the TrueType fonts in the newer printers.  The metrics for the\nTrueType  fonts  are very close, though not identical, to those for the\nearlier Intellifont fonts of the same names.  Although most output  us-\ning  the  Intellifont  metrics with the newer printers is quite accept-\nable, a few glyphs may fail to print as expected.  The  differences  in\nglyph  metrics  may be particularly noticeable with composite parenthe-\nses, brackets, and braces used by eqn(1).  A script, located  in  /usr/\nshare/groff/1.22.4/font/devlj4/generate, can be used to adjust the met-\nrics for these glyphs in the special font \"S\"  for  use  with  printers\nthat have all TrueType fonts.\n\nAt  the  time HP last supported TFM files, only version 1.0 of the Uni-\ncode standard was available.  Consequently,  many  glyphs  lacking  as-\nsigned  code  points were assigned by HP to the Private Use Area (PUA).\nLater versions of the Unicode standard included code points outside the\nPUA  for  many of these glyphs.  The HP-supplied TrueType TFM files use\nthe PUA assignments; TFM files generated from more recent TrueType font\nfiles require the later Unicode values to access the same glyphs.  Con-\nsequently, two different mapping files may be required: one for the HP-\nsupplied TFM files, and one for more recent TFM files.\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\ncorrects  Intellifont-based height metrics for several glyphs in\nthe special font  for  TrueType  CG  Times  (LaserJet  4000  and\nlater).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "groff(1), hpftodit(1), grolj4(1), grofffont(5)\n\ngroff 1.22.4                     23 March 2022                     LJ4FONT(5)",
            "subsections": []
        }
    },
    "summary": "lj4font - groff fonts for use with devlj4",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "groff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/groff/1/json"
        },
        {
            "name": "hpftodit",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/hpftodit/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"
        }
    ]
}