diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-08 20:20:14 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-08 20:20:14 +0200 |
commit | e5d13dc18fb76b71a4ecb1da28f8c02beaf22d2f (patch) | |
tree | 21c549179146b8e8402077dd9e25e87ec9f15aef | |
parent | dfcf2da3561dc2708c0b9ebbcf5bb1bbd3c33749 (diff) | |
download | fnt-master.tar.gz |
-rw-r--r-- | README | 16 | ||||
-rwxr-xr-x | convert | 4 | ||||
-rwxr-xr-x | rename | 2 |
3 files changed, 21 insertions, 1 deletions
@@ -0,0 +1,16 @@ +This folder contains a variety of helpful tools for font conversion. + +Makefile: + + .ttf -> .afm -> .dit (ditroff font for (g)troff) + .bdf -> .otb + + fonts (install otb fonts to ~/.fonts) + groff (install fonts to groff's system font directory) + +All rules assume that the fonts are located in the var/ directory. + +Extra scripts: + + rename (given a family name, rename troff font file appropriately) + convert (batch generate and rename troff font files) @@ -1,5 +1,9 @@ #!/bin/sh +# convert -- batch convert .ttf -> .dit + +[ $# -eq 0 ] && { echo usage: $0 family ttf ... 1>&2; exit 1; } + f=$1 shift @@ -1,6 +1,6 @@ #!/usr/bin/perl -# rename -- automatically rename ditroff file +# rename -- figure out troff font name sub usage { die "usage: $0 [-n] family file\n"; |