#!/bin/sh # # Get metrics information from Macintosh fonts # CMD=getmet usage() { echo "usage: $CMD [-m] screen_font outline_font1 [outline_font2 ...]" >&2 exit 1 } while getopts ":m" c do case "$c" in m) mb="-m";; :|'?') usage;; esac done shift $(($OPTIND - 1)) [ $# -lt 1 ] && usage # Use fondu to get kerning information from screen font fondu -afm -force "$1" || exit 1 rm -f *.bdf shift for f in "$@"; do m2p $mb "$f" >"$f.pfb" || exit 1 getmetric "$f.pfb" || exit 1 done .