1 .
\" tmac.fp
- Generate font descriptions
on the fly
3 .
\" This
package contains macros that generate neatroff font
4 .
\" descriptions
while neatroff is processing
input files.
5 .
\" \
*[fp.src
] should be a directory specified
in GS_FONTPATH
6 .
\" environment variable or via
-sFONTPATH
="..." option of
7 .
\" ghostscript (viz. ps2pdf
). Temporary neatroff
file
8 .
\" descriptions are created
in \
*[fp.dst
] directory.
10 .
if ''\
*[fp.src
]' .ds fp.src
"/path/to/GS_FONTPATH
11 .if ''\*[fp.dst]' .ds fp.dst "/tmp
/
12 .
if ''\
*[fp.mkfn
]' .ds fp.mkfn
"neatmkfn
13 .\" .fp.ttf font_position troff_font_name font_name
15 . sy \\*[fp.mkfn] -b -l -o <\\*[fp.src]/\\$3.ttf >\\*[fp.dst]/\\$3
16 . fp \\$1 \\$2 \\*[fp.dst]/\\$3
18 .\" .fp.otf font_position troff_font_name font_name
20 . sy fontforge -lang=ff -c 'Open("\\*[fp.src
]/\\$
3.otf
"); Generate("\\*[fp.src
]/\\$
3.ttf
");' >/dev/null 2>&1
21 . fp.ttf \\$1 \\$2 \\$3
23 .\" .fp.afm font_position troff_font_name font_name
25 . sy \\*[fp.mkfn] -b -a <\\*[fp.src]/\\$3.afm >\\*[fp.dst]/\\$3
26 . fp \\$1 \\$2 \\*[fp.dst]/\\$3