Skip to content

Instantly share code, notes, and snippets.

Avatar

mftrhu

  • Italy
View GitHub Profile
@torbiak
torbiak / groff-install-font
Last active Jan 12, 2021
Install ttf and otf fonts for use with groff
View groff-install-font
#!/usr/bin/env bash
# groff-install-ttf converts a TrueType (ttf) or OpenType (otf) font to a
# Printer Font ASCII (pfa) font and a groff font (ditroff) and installs them to
# groff's site-font directory.
#
# Requires fontforge.
#
# You're the best, Peter Schaffter, but contrary to the verbose and
# difficult-to-follow http://www.schaffter.ca/mom/momdoc/appendices.html#fonts,
# the t42 file doesn't seem to be necessary, at least with recent versions of