File: readpfa

package info (click to toggle)
mowitz 0.2.0-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,168 kB
  • ctags: 4,214
  • sloc: ansic: 30,869; sh: 9,051; makefile: 169
file content (25 lines) | stat: -rwxr-xr-x 329 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# This script finds a Type 1 font file (pfa or pfb) and dumps it on stdout.
# Binary files are converted to ascii; requires t1ascii from t1utils.

IFS=:

for d in $1; do
	if [ -f $d/$2 ]; then
		f=$d/$2
	fi
done

case `file "$f"` in
*data* )
	pfb2ps < $f
	;;
*text* )
	cat $f
	;;
* )
	echo No such file 1>&2
	;;
esac