Next: Italic Corrections, Previous: Font Effects and Text Underlining, Up: Using Fonts [Contents][Index]
Proportional fonts commonly employ two techniques to improve the esthetics of typeset text. Ligatures are sequences of glyphs that are visually connected or “tied”, overlapping them and slightly altering their shapes. Kerning is the adjustment of horizontal spacing between glyphs. Neither is employed on terminals.203
Most typesetters support ligatures for the sequences
‘fi’,
‘fl’,
‘ff’,
‘ffi’,
and
‘ffl’,
and
troff formatters do likewise.
Some fonts may include others,
but
GNU
troff does not (yet) support them.
The formatter checks only the current font
for ligatures and kerning adjustments:
neither glyphs from special fonts nor special characters
defined with the
char
request
(and its siblings)
are considered
for these processes;
recall Characters and Glyphs.
Switch the ligature mechanism on or off; if the parameter is non-zero or
missing, ligatures are enabled, otherwise disabled. Default is on. The
current ligature mode can be found in the read-only register .lg
(set to 1 or 2 if ligatures are enabled, 0 otherwise).
Setting the ligature mode to 2 enables the two-character ligatures (fi, fl, and ff) and disables the three-character ligatures (ffi and ffl).
Pairwise kerning modifies the distance between adjacent glyphs in a pair, improving readability. In most cases, this alteration is a decrease. Monospaced (typewriter-like) fonts, and therefore terminals, don’t use kerning.
Enable or disable pairwise kerning of glyphs in the environment per b. It is enabled by default, and if b is omitted.
The read-only register .kern interpolates 1 if pairwise
kerning is enabled, 0 otherwise.
If the font description file
contains pairwise kerning information,
GNU
troff kerns glyphs
from that font.204
Kerning between two glyphs can be inhibited by placing
\&
between them:
‘V\&A’.
Track kerning expands or reduces the space between glyphs. This can be handy, for example, if you need to squeeze a long word onto a single line or spread some text to fill a narrow column. It must be used with great care since it is usually considered bad typography if the reader notices the effect.
Enable track kerning for font f. If the selected font is f, increase the advance width by an amount between n1 and n2 (each can be negative): if the type size is less than or equal to s1, or if s2 is less than or equal to s1, the width increases by n1; if the type size is greater than or equal to s2, the width increases by n2; otherwise, the advance width increase is a linear function of the type size.
The default scaling unit is
‘z’
for
s1
and
s2,
and
‘p’
for
n1
and
n2.
GNU
troff adds the track kerning amount even to the rightmost glyph in a line;
for large
n1
and/or
n2,
we thus recommend increasing the line length to compensate.
Next: Italic Corrections, Previous: Font Effects and Text Underlining, Up: Using Fonts [Contents][Index]