troff reads text files (written using an instream formatting language, see nroff) and formats the text for typesetting or laser printing.
The most common modern implementation is GNU groff.