addftinfo(1)

addftinfo(1)

okay so welcome to the General Commands Manual, bestie β€” this is addftinfo(1), and we're about to give troff fonts the extra metrics info that groff needs. πŸ’–

πŸŽ€ Name πŸŽ€

addftinfo β€” add font metrics to troff fonts for use with groff.

✨ Synopsis ✨

addftinfo [-asc-height n] [-body-depth n] [-body-height n]
          [-cap-height n] [-comma-depth n] [-desc-depth n]
          [-fig-height n] [-x-height n] resolution unit-width font

addftinfo --help

addftinfo -v

addftinfo --version

πŸ¦‹ Description πŸ¦‹

addftinfo reads an AT&T troff font description file called font, adds the further font metric information required by GNU troff(1), and writes the combined result to the standard output stream. The info it adds is derived from the font's existing parameters and from assumptions about traditional troff names for characters. Among the font metrics added are the heights and depths of characters β€” aka how far each character extends vertically above and below the baseline. πŸ’…

The resolution and unit-width arguments should be the same as the corresponding parameters in the DESC file. font is the name of the file describing the font; if font ends with β€œI”, the font is assumed to be oblique (or italic). πŸ¦‹

πŸŽ€ Options πŸŽ€

  • --help β€” displays a usage message, then exits.
  • -v, --version β€” show version information, then exit.

All of those exit afterward, periodt. ✨

All the other options change parameters that are used to derive the heights and depths. Like the existing quantities in the font description file, each value n is in scaled points β€” that's inches/resolution for a font whose type size is unit-width β€” see groff_font(5). 🫢

  • -asc-height n β€” height of characters with ascenders, such as β€œb”, β€œd”, or β€œl”
  • -body-depth n β€” depth of characters such as parentheses
  • -body-height n β€” height of characters such as parentheses
  • -cap-height n β€” height of uppercase letters such as β€œA”
  • -comma-depth n β€” depth of a comma
  • -desc-depth n β€” depth of characters with descenders, such as β€œp”, β€œq”, or β€œy”
  • -fig-height β€” height of figures (numerals)
  • -x-height n β€” height of lowercase letters without ascenders such as β€œx”
bestie, addftinfo makes no attempt to use the specified parameters to infer unspecified parameters. If a parameter is not specified, the default will be used. The defaults are chosen to produce reasonable values for a Times font. No mind-reading here, iykyk. 😭

πŸ’… Exit status πŸ’…

addftinfo exits with status 0 on successful operation, and status 2 if the program cannot interpret its command-line arguments. Slay when it works, dramatic exit when the args don't parse. πŸ’€

🌸 See also 🌸

groff_font(5), groff(1), groff_char(7)


πŸ’– This page is addftinfo(1) from groff 1.24.2, dated 2026-10-01 β€” that's the whole vibe, bestie; now go add those metrics and make those fonts iconic. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from