summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/drm/allcomp.sh
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-09-03 21:44:10 +0000
committerKarl Berry <karl@freefriends.org>2014-09-03 21:44:10 +0000
commitd0d0d4483cb9d0d98d4570649930ddb803c83050 (patch)
tree95a35c8fe79d7de6a9ed02f325631b6d2282a003 /Master/texmf-dist/doc/fonts/drm/allcomp.sh
parent855095e4c676191f2890ea2fb5868c276042ae30 (diff)
drm (2sep14)
git-svn-id: svn://tug.org/texlive/trunk@35102 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/drm/allcomp.sh')
-rw-r--r--Master/texmf-dist/doc/fonts/drm/allcomp.sh52
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/fonts/drm/allcomp.sh b/Master/texmf-dist/doc/fonts/drm/allcomp.sh
new file mode 100644
index 00000000000..f0324f9d8eb
--- /dev/null
+++ b/Master/texmf-dist/doc/fonts/drm/allcomp.sh
@@ -0,0 +1,52 @@
+#!/bin/bash
+# +AMDG
+
+re="^drm([m|b|bx|c|sym]*)([n|it|sl|sc]*)([0-9]{1,2})$";
+ifmath="mmi";
+ifomx="omx";
+ifmathsym="sy[0-9]";
+font=$1;
+fname="drm";
+fenc="T1";
+commands="\\sample\\bye";
+if [[ $font =~ $ifmath ]]; then
+ fenc="OML";
+ commands="\\table\\math\\bye";
+fi
+if [[ $font =~ $ifomx ]]; then
+ fenc="OMX";
+ commands="\\table\\math\\bye";
+fi
+if [[ $font =~ $ifmathsym ]]; then
+ fenc="OMS";
+ commands="\\table\\math\\bye";
+fi
+[[ $font =~ $re ]] && fweight="${BASH_REMATCH[1]}" &&
+ fshape="${BASH_REMATCH[2]}" && fsize="${BASH_REMATCH[3]}";
+if [[ $fshape == "" ]]; then
+ fshape="m";
+fi
+if [[ $fweight == "" ]]; then
+ fweight="n";
+elif [[ $fweight == "sym" ]]; then
+ fweight="n";
+ fname="drmsym";
+fi
+#echo "fweight = $fweight; fshape = $fshape; fsize = $fsize";
+nfssfontin=$(cat <<ENDFONTIN
+$font
+$commands
+$fenc
+$fname
+$fweight
+$fshape
+$fsize
+$commands
+ENDFONTIN
+)
+echo $nfssfontin;
+
+rm $1*pk; rm $1*gf;
+mf "\mode=localfont; input $1";
+gftopk $1.600gf $1.pk;
+echo "$nfssfontin" | pdflatex nfssfont;