LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

addftinfo

Add font metric information to troff font files

TLDR

Add font metrics to a troff font file
$ addftinfo [resolution] [unitwidth] [font] < [input.tfm] > [output.tfm]
copy
Add metrics for 300 dpi resolution
$ addftinfo 300 300 TR < times-roman.tfm > TR.tfm
copy

SYNOPSIS

addftinfo [-v] resolution unitwidth font < input > output

DESCRIPTION

addftinfo is a groff (GNU troff) utility that adds computed font metric information to troff font files. It reads a font file, calculates additional metrics needed for typesetting, and outputs an enhanced font file.The tool is typically used as part of the font installation process for groff, adding metrics like character heights and depths that aren't always present in basic font files.

PARAMETERS

resolution

Device resolution in dots per inch
unitwidth
Point size at which the font unitwidth was designed
font
Groff font name (R, I, B, BI, etc.)
-v, --version
Print version information

INSTALL

sudo apt install groff
copy
sudo dnf install groff
copy
sudo pacman -S groff
copy
sudo apk add groff
copy
sudo zypper install groff
copy
brew install groff
copy
nix profile install nixpkgs#groff
copy

CAVEATS

The input must be a valid troff font description file. Output metrics are computed approximations and may not perfectly match the actual font rendering. This tool is specific to the groff typesetting system.

HISTORY

addftinfo is part of GNU groff, which was developed starting in 1989 as a free replacement for the Unix troff typesetting system. The utility was created to simplify font installation.

SEE ALSO

groff(1), troff(1), afmtodit(1), tfmtodit(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid