lj4_font − groff fonts for use with devlj4


Nominally, all Hewlett-Packard LaserJet 4–series and newer printers have the same internal fonts: 45 scalable fonts and one bitmapped Lineprinter font. The scalable fonts are available in sizes between 0.25 point and 999.75 points, in 0.25-point increments; the Lineprinter font is available only in 8.5-point size.

The LaserJet font files included with groff assume that all printers since the LaserJet 4 are identical. There are some differences between fonts in the earlier and more recent printers, however. The LaserJet 4 printer used Agfa Intellifont technology for 35 of the internal scalable fonts; the remaining 10 scalable fonts were TrueType. Beginning with the LaserJet 4000–series printers introduced in 1997, all scalable internal fonts have been TrueType. The number of printable glyphs differs slightly between Intellifont and TrueType fonts (generally, the TrueType fonts include more glyphs), and there are some minor differences in glyph metrics. Differences among printer models are described in the PCL 5 Comparison Guide and the PCL 5 Comparison Guide Addendum (for printers introduced since approximately 2001).

LaserJet printers reference a glyph by a combination of a 256-glyph symbol set and an index within that symbol set. Many glyphs appear in more than one symbol set; all combinations of symbol set and index that reference the same glyph are equivalent. For each glyph, hpftodit(1) searches a list of symbol sets, and selects the first set that contains the glyph. The printing code generated by hpftodit(1) is an integer that encodes a numerical value for the symbol set in the high byte(s), and the index in the low byte. See groff_font(5) for a complete description of the font file format; symbol sets are described in greater detail in the PCL 5 Printer Language Technical Reference Manual.

Two of the scalable fonts, Symbol and Wingdings, are bound to 256-glyph symbol sets; the remaining scalable fonts, as well as the Lineprinter font, support numerous symbol sets, sufficient to enable printing of more than 600 glyphs.

The metrics generated by hpftodit(1) assume that the DESC file contains values of 1200 for res and 6350 for unitwidth (or any combination (e.g., 2400 and 3175) for which res × unitwidth = 7620000). Although HP PCL 5 LaserJet printers support an internal resolution of 7200 units per inch, they use a 16-bit signed integer for cursor positioning; if devlj4 is to support U.S. ledger paper (11″ × 17″), the maximum usable resolution is 32767 / 17, or 1927, units per inch, which rounds down to 1200 units per inch. If the largest required paper size is less (e.g., 8.5″ × 11″ or A5), a greater resolution (and lesser unitwidth) can be specified.


Font metrics for Intellifont fonts were provided by Tagged Font Metric (TFM) files originally developed by Agfa/Compugraphic. The TFM files provided for these fonts supported 600+ glyphs and contained extensive lists of kern pairs.

To accommodate developers who had become accustomed to TFM files, HP also provided TFM files for the 10 TrueType fonts included in the LaserJet 4. The TFM files for TrueType fonts generally included less information than the Intellifont TFMs, supporting fewer glyphs, and in most cases, providing no kerning information. By the time the LaserJet 4000 printer was introduced, most developers had migrated to other means of obtaining font metrics, and support for new TFM files was very limited. The TFM files provided for the TrueType fonts in the LaserJet 4000 support only the Latin 2 (ISO 8859-2) symbol set, and include no kerning information; consequently, they are of little value for any but the most rudimentary documents.

Because the Intellifont TFM files contain considerably more information, they generally are preferable to the TrueType TFM files even for use with the TrueType fonts in the newer printers. The metrics for the TrueType fonts are very close, though not identical, to those for the earlier Intellifont fonts of the same names. Although most output using the Intellifont metrics with the newer printers is quite acceptable, a few glyphs may fail to print as expected. The differences in glyph metrics may be particularly noticeable with composite parentheses, brackets, and braces used by eqn(1). A script, located in /usr/share/groff/1.22.2/font/devlj4/generate, can be used to adjust the metrics for these glyphs in the special font S for use with printers that have all TrueType fonts.

At the time HP last supported TFM files, only Version 1 of the Unicode standard was available. Consequently, many glyphs lacking assigned code points were assigned by HP to the Private Use Area (PUA). Later versions of the Unicode standard included code points outside the PUA for many of these glyphs. The HP-supplied TrueType TFM files use the PUA assignments; TFM files generated from more recent TrueType font files require the later Unicode values to access the same glyphs. Consequently, two different mapping files may be required: one for the HP-supplied TFM files, and one for more recent TFM files.



Device description file.


Font description file for font F.


groff(1), groff_diff(1), hpftodit(1), grolj4(1), groff_font(5)

More Linux Commands

user-dirs.conf(5) configuration for xdguserdirsupdate ......
The /etc/xdg/user-dirs.conf file is a text file that controls the behavior of the xdg-user-dirs-update command. Users can have their own ~/.config/user-dirs.con

gtnameserv-4.6(1) - Naming service - Linux manual page......
To be written ... OPTIONS -ORBInitialPort PORT Port on which naming service is to be started. -ior FILE File in which to store naming services IOR reference. St

getprotobyname(3) - get protocol entry - Linux manual page
The getprotoent() function reads the next entry from the protocols database (see protocols(5)) and returns a protoent structure containing the broken-out fields

cfmakeraw(3) - get and set terminal attributes, line control
The termios functions describe a general terminal interface that is provided to control asynchronous communications ports. The termios structure Many of the fun

gnutls_openpgp_privkey_export_subkey_rsa_raw.3 - This function will export the RSA private keys parameters found in the given structure. The new parameters will

clock_settime(2) - clock and time functions - Linux man page
The function clock_getres() finds the resolution (precision) of the specified clock clk_id, and, if res is non-NULL, stores it in the struct timespec pointed to

gitattributes(5) - defining attributes per path (Man Page)
A gitattributes file is a simple text file that gives attributes to pathnames. Each line in gitattributes file is of form: pattern attr1 attr2 ... That is, a pa

cbreak_sp(3ncurses) - curses screen-pointer extension.......
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

FileCache(3pm) - keep more files open than the system permit
The cacheout function will make sure that theres a filehandle open for reading or writing available as the pathname you give it. It automatically closes and re-

XtProcessLock(3) - lock and unlock process - Linux man page
XtProcessLock is used to lock all process global data. XtProcessUnlock unlocks the process. SEE ALSO X Toolkit Intrinsics - C Language Interface Xlib - C Langua

mkinitrd(5) - description of modular scripts layout.........
mkinitrd creates initial ramdisk images for booting Linux. It is designed to be modular, so that functionality required by other programs can be maintained in s

Tcl_PkgProvide(3) - package version control - Linux man page
These procedures provide C-level interfaces to Tcls package and version management facilities. Tcl_PkgRequire is equivalent to the package require command, Tcl_

We can't live, work or learn in freedom unless the software we use is free.