Skip to content

Instantly share code, notes, and snippets.



  • Italy
View GitHub Profile
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,
# the t42 file doesn't seem to be necessary, at least with recent versions of