GROFF_FONT(5) | File Formats Manual | GROFF_FONT(5) |
NAME
groff_font - format of groff device and font description filesDESCRIPTION
The groff font format is roughly a superset of the ditroff font format. The font files for device name are stored in a directory devname. There are two types of file: a device description file called DESC and for each font F a font file called F. These are text files; unlike the ditroff font format, there is no associated binary format.DESC file format
The DESC file can contain the following types of line as shown below. Later entries in the file override previous values.- charset
- This line and everything following in the file are ignored. It is allowed for the sake of backwards compatibility.
- family fam
- The default font family is fam.
- fonts n F1 F2 F3 ... Fn
- Fonts F1, ..., Fn are mounted in the font positions m+1, ..., m+n where m is the number of styles. This command may extend over more than one line. A font name of 0 causes no font to be mounted on the corresponding font position.
- hor n
- The horizontal resolution is n machine units.
- image_generator string
- Needed for grohtml only. It specifies the program to generate PNG images from PostScript input. Under GNU/Linux this is usually gs but under other systems (notably cygwin) it might be set to another name.
- paperlength n
- The physical vertical dimension of the output medium in machine units. This isn't used by troff itself but by output devices. Deprecated. Use papersize instead.
- papersize string
- Select a paper size. Valid values for string are the ISO paper types A0–A7, B0–B7, C0–C7, D0–D7, DL, and the US paper types letter, legal, tabloid, ledger, statement, executive, com10, and monarch. Case is not significant for string if it holds predefined paper types. Alternatively, string can be a file name (e.g. `/etc/papersize'); if the file can be opened, groff reads the first line and tests for the above paper sizes. Finally, string can be a custom paper size in the format length,width (no spaces before and after the comma). Both length and width must have a unit appended; valid values are `i' for inches, `c' for centimeters, `p' for points, and `P' for picas. Example: 12c,235p. An argument which starts with a digit is always treated as a custom paper format. papersize sets both the vertical and horizontal dimension of the output medium.
- More than one argument can be specified; groff scans from left to right and uses the first valid paper specification.
- paperwidth n
- The physical horizontal dimension of the output medium in machine units. Deprecated. Use papersize instead. This isn't used by troff itself but by output devices.
- pass_filenames
- Make troff tell the driver the source file name being processed. This is achieved by another tcommand: F filename.
- postpro program
- Use program as the postprocessor.
- prepro program
- Call program as a preprocessor.
- print program
- Use program as the spooler program for printing. If omitted, the -l and -L options of groff are ignored.
- res n
- There are n machine units per inch.
- sizes s1 s2 ... sn 0
- This means that the device has fonts at s1, s2, ..., sn scaled points. The list of sizes must be terminated by a 0. Each si can also be a range of sizes m-n. The list can extend over more than one line.
- sizescale n
- The scale factor for point sizes. By default this has a value of 1. One scaled point is equal to one point/n. The arguments to the unitwidth and sizes commands are given in scaled points.
- styles S1 S2 ... Sm
- The first m font positions are associated with styles S1, ..., Sm.
- tcommand
- This means that the postprocessor can handle the t and u output commands.
- unicode
- Indicate that the output device supports the complete Unicode repertoire. Useful only for devices which produce character entities instead of glyphs.
- If unicode is present, no charset section is required in the font description files since the Unicode handling built into groff is used. However, if there are entries in a charset section, they either override the default mappings for those particular characters or add new mappings (normally for composite characters).
- This is used for -Tutf8, -Thtml, and -Txhtml.
- unitwidth n
- Quantities in the font files are given in machine units for fonts whose point size is n scaled points.
- unscaled_charwidths
- Make the font handling module always return unscaled glyph widths. Needed for the grohtml device.
- use_charnames_in_special
- This command indicates that troff should encode named glyphs inside special commands.
- vert n
- The vertical resolution is n machine units.
Font file format
A font file has two sections; empty lines are ignored in both of them.- ligatures lig1 lig2 ... lign [0]
- Glyphs lig1, lig2, ..., lign are ligatures; possible ligatures are ff, fi, fl, ffi, and ffl. For backwards compatibility, the list of ligatures may be terminated with a 0. The list of ligatures may not extend over more than one line.
- name F
- The name of the font is F.
- slant n
- The glyphs of the font have a slant of n degrees. (Positive means forward.)
- spacewidth n
- The normal width of a space is n.
- special
- The font is special; this means that when a glyph is requested that is not present in the current font, it is searched for in any special fonts that are mounted.
- name metrics type code [entity_name] [-- comment]
- 1
- means the glyph has a descender, for example, `p';
- 2
- means the glyph has an ascender, for example, `b';
- 3
- means the glyph has both an ascender and a descender, for example, `('.
-
width[,height[,depth[,italic-correction
- name "
- c1 c2 n
FILES
- /share/groff/1.22.1/font/devname/DESC
- Device description file for device name.
- /share/groff/1.22.1/font/devname/F
- Font file for font F of device name.
SEE ALSO
groff_out(5), troff(1).30 December 2012 | Groff Version 1.22.1 |