Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/lib/texmf/tex/latex/psnfss/allpspk

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/sh 

# Sebastian Rahtz, copied from Thomas Esser's "allcm"
# make all the necessary PK fonts for a PostScript font family

family=$1
shift;
body()
{
	cat <<-'eof'
		\pagestyle{empty}
		\parindent0in
		\textheight9.5in
		\textwidth6.5in
		\newcommand{\myformula}{\sum a_{b_{c_d}} = c}
		\newcommand{\mytext}{text}

		\newcommand{\TestSizes}{{%
		\tiny \mytext\scriptsize \mytext\footnotesize \mytext\small \mytext
		\normalsize \mytext
		\large \mytext\Large \mytext\LARGE \mytext\huge \mytext\Huge \mytext}}
		\newcommand{\TestRM}{rm-family: {\rmfamily\TestSizes}\newline}
		\newcommand{\TestSF}{sf-family: {\sffamily\TestSizes}\newline}
		\newcommand{\TestTT}{tt-family: {\ttfamily\TestSizes}\newline}
		\newcommand{\TestFamilies}{\TestRM\TestSF\TestTT\newline}
		\newcommand{\TestMD}{md-series: {\mdseries\TestFamilies}}
		\newcommand{\TestBF}{bf-series: {\bfseries\TestFamilies}}
		\newcommand{\TestSeries}{\TestBF\TestMD\par}
		\newcommand{\TestUP}{up-shape: {\upshape\TestSeries}\par}
		\newcommand{\TestIT}{it-shape: {\itshape\TestSeries}\par}
		\newcommand{\TestSL}{sl-shape: {\slshape\TestSeries}\par}
		\newcommand{\TestSC}{sc-shape: {\scshape\TestSeries}\par}
		\newcommand{\TestShapes}{\TestUP\TestIT\TestSL\TestSC}
		\begin{document}
                \ding{101}\Pisymbol{psy}{101} 
		\TestShapes
		\end{document}
	eof
}

head()
{
	echo '\documentclass{article}'
	echo '\usepackage{'$family'}'
	echo '\usepackage{pifont}'
	echo '\usepackage[T1]{fontenc}'
}

cd /tmp
mkdir tmp$$ && cd tmp$$ || exit
trap "cd / ; rm -rf /tmp/tmp$$; trap '' 0; exit 0" 0 1 2 15

echo >&2
echo "---------------------------------------------------------------------" >&2
echo ">>>>>>>>>>>  Generating testfile for $family, $encoding <<<<<<<<<<" >&2
echo "---------------------------------------------------------------------" >&2
head > allfonts.tex
body >> allfonts.tex

echo >&2
echo "---------------------------------------------------------------------" >&2
echo ">>>>>>>>>>>  Calling latex (expect some warnings)...       <<<<<<<<<<" >&2
echo "---------------------------------------------------------------------" >&2
hugetex allfonts

echo >&2
echo "---------------------------------------------------------------------" >&2
echo ">>>>>>>>>>>  Now, calling $DVIPS to make missing fonts...  <<<<<<<<<<" >&2
echo "---------------------------------------------------------------------" >&2
dvips ${1+"$@"} -V -f allfonts > /dev/null
cd /
rm -rf /tmp/tmp$$


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.