changing font styles
.ft Bpush bold, italian, roman font, or font mounted on position N, respectively.
.ft Ppop a font. The font stack has only a height of one, so if you don't restore immediately after the change, your previous font is lost.
\fXdoes a .ft X in the middle of a line.
.fp N Xmounts font X on font position N. The manual says font positions run from 1 to 4, but at my site, they run from 1 to 8. We usually use them like this:
The read-only number register
- H (Helvetica)
- HO (Helvetica Oblique)
- HB (Helvetica Bold)
- C (Courier)
.fcontains the number of the current font.
There is a
.fz S F Nrequest that does an implicit resize whenever you enter and exit a font, but I can't get it to run, and the manual doesn't make sense to me.
.ul Nmakes the next N lines (default: 1) print underlined (in nroff) or in italics (in troff). .f is saved and restored. The manual claims that the lines output by a .tl request don't count towards the total number of lines in an .ul, but I can't get .ul to work enough to test this.
boldening by overstrike
.bd N Uemboldens the font mounted on N by shifting U units to the right and printing again. The manual says this mode ``must be still or again in effect when the characters are physically printed,'' but I've tried it without ever physically printing anything, and it worked, so it must mean something else.
.lg modesets the ligature mode. The meaning of mode is
Our particular system makes no difference between 2 and 1 mode; it doesn't seem to understand genuine ffi and ffl ligatures. Of the five ligature string registers that are supposed to be present, only fi and fl work with our SunOS troff; all work with groff.
- no ligatures
- only two-character ligatures (no ffi and ffl)
- turn on ligatures
- \(fi (works)
- \(fl (works)