PSFONTS(1)

πŸ“¦ version 0_git20260208, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

πŸ’… psfonts / psdownload β€” General Commands Manual, PSFONTS(1) πŸ’…

πŸŽ€ NAME πŸŽ€

psfonts, psdownload β€” add necessary fonts to PostScript document for printing πŸ’–

✨ SYNOPSIS ✨

psfonts [ files ...  ]

psdownload [ options ] [ files ...  ]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the vibe, bestie: Plan 9’s troff(1) and tr2post(1) use non-standard PostScript fonts (found in /postscript/font). Before sending PostScript output from tr2post to a standard printer, code implementing the non-standard fonts must be added to the PostScript. That’s the whole reason this icon exists. πŸ’…

psfonts copies files (or standard input) to standard output, adding necessary PostScript fonts. Lowkey magic, highkey useful. ✨

psdownload is the more general program used to implement psfonts. The options are:

  • -c comment β€” Expect the fonts used in the document to be listed in a comment beginning with this string (default %%DocumentFonts:). πŸŽ€
  • -f atend β€” Expect extra fonts comments at the end of the document, so read the entire input before starting output (by default this only happens if a %%DocumentFonts: (atend) comment is encountered). πŸ¦‹
  • -m mapfile β€” Use mapfile to translate from PostScript font names to files. Each line in the map has two white space-separated fields: a font name and the corresponding file. If mapfile is not a rooted path, it is evaluated relative to the fontdir (see -H below). πŸ’–
  • -p printer β€” Set the name of the printer. 🫢 This option is deprecated. Its only effect is to override the -r option, causing fontdir/printers/printer to be used as the resident fonts list. ⚠️
  • -r residentfonts β€” Read a list of fonts assumed to be on the printer (not necessary to re-download) from the file residentfonts. If residentfonts is not a rooted path, it is evaluated relative to the fontdir (see -H below). 🌸
  • -H fontdir β€” Set the directory that is assumed to contain the PostScript fonts and information about printers (see -m, -p, and -r above; default /postscript/font). πŸ‘‘
  • -T tmpdir β€” Use tmpdir for storing temporary files (default /var/tmp). πŸ“
  • -D β€” Produce copious amounts of debugging information on standard error. πŸ˜­πŸ”
  • -I β€” Continue running even after fatal errors occur. πŸ’€βž‘οΈπŸ’–
bestie, the -p deprecation is real β€” it only overrides -r like the manpage says. No cap. βœ‹

🌈 EXAMPLE 🌈

See tr2post(1) for an example. That’s literally it. ✨

πŸ’œ SOURCE πŸ’œ

  • /bin/psfonts
  • /src/cmd/postscript/download

⭐ SEE ALSO ⭐

troff(1), tr2post(1) β€” go read those too, iykyk 🧚


okay bye bestie! footer check: this one’s PSFONTS(1) from the General Commands Manual β€” no extra date was printed on the page, just vibes. Mwah πŸ’–βœ¨