#!/bin/sh # # Test drive a PostScript font and view the output with Acrobat Reader # usage() { echo "usage: tpsfp [-c] [-n] [-e enc_file] file" >&2 exit 1 } while getopts ":cne:" c do case "$c" in c) ;; n) ;; e) ;; :|'?') usage;; esac done if [ $OPTIND -gt $# ]; then usage; fi tmpfile=$(mktemp ~/.tpsfp.XXXXXX) || exit 1 tpsf "$@" | ps2pdf - >$tmpfile && acroread $tmpfile rm -f $tmpfile .