From d318611dd6f23fcfedd50e9b9e24620b102ba96a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:44:05 +0200 Subject: Adding upstream version 1.23.0. Signed-off-by: Daniel Baumann --- font/devps/generate/afmname | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 font/devps/generate/afmname (limited to 'font/devps/generate/afmname') diff --git a/font/devps/generate/afmname b/font/devps/generate/afmname new file mode 100755 index 0000000..7d19349 --- /dev/null +++ b/font/devps/generate/afmname @@ -0,0 +1,44 @@ +#! /bin/sh +# Fix the path name of an AFM file. +if test -f "$1" +then + echo "$1" +else + echo `dirname $1`/`basename $1 .afm | awk ' +/^AvantGarde-Book$/ { print "avangbk" } +/^AvantGarde-BookOblique$/ { print "avangbko" } +/^AvantGarde-Demi$/ { print "avangd" } +/^AvantGarde-DemiOblique$/ { print "avangdo" } +/^Bookman-Demi$/ { print "bookmd" } +/^Bookman-DemiItalic$/ { print "bookmdi" } +/^Bookman-Light$/ { print "bookml" } +/^Bookman-LightItalic$/ { print "bookmli" } +/^Courier$/ { print "couri" } +/^Courier-Bold$/ { print "courib" } +/^Courier-BoldOblique$/ { print "couribo" } +/^Courier-Oblique$/ { print "courio" } +/^Helvetica$/ { print "helve" } +/^Helvetica-Bold$/ { print "helveb" } +/^Helvetica-BoldOblique$/ { print "helvebo" } +/^Helvetica-Narrow$/ { print "helven" } +/^Helvetica-Narrow-Bold$/ { print "helvenb" } +/^Helvetica-Narrow-BoldOblique$/ { print "helvenbo" } +/^Helvetica-Narrow-Oblique$/ { print "helveno" } +/^Helvetica-Oblique$/ { print "helveo" } +/^NewCenturySchlbk-Bold$/ { print "newcsb" } +/^NewCenturySchlbk-BoldItalic$/ { print "newcsbi" } +/^NewCenturySchlbk-Italic$/ { print "newcsi" } +/^NewCenturySchlbk-Roman$/ { print "newcsr" } +/^Palatino-Bold$/ { print "palatb" } +/^Palatino-BoldItalic$/ { print "palatbi" } +/^Palatino-Italic$/ { print "palati" } +/^Palatino-Roman$/ { print "palatr" } +/^Symbol$/ { print "symbol" } +/^Times-Bold$/ { print "timesb" } +/^Times-BoldItalic$/ { print "timesbi" } +/^Times-Italic$/ { print "timesi" } +/^Times-Roman$/ { print "timesr" } +/^ZapfChancery-MediumItalic$/ { print "zapfcmi" } +/^ZapfDingbats$/ { print "zapfd" } +' `.afm +fi -- cgit v1.2.3