# Simple task, not so simple ...

Christian Kuhn Christian.Kuhn@qno.de
Sun, 12 Aug 2001 20:06:15 +0200

Hi,

Just trying ...

Before doing the complicate things like SC + expert, i just try the
simple installation of URW Garamond only with regular and small
caps. I used

---fontugm.tex---
\input fontinst.sty

\installfonts

\transformfont{ugmr8r}{\reencodefont{8r}{\fromafm{ugmr8a}}}
\transformfont{ugmrc8r}{\reencodefont{8r}{\fromafm{ugmrc8a}}}

\installfamily{8r}{ugm}{}
\installfamily{OT1}{ugm}{}
\installfamily{T1}{ugm}{}
\installfamily{TS1}{ugm}{}

\installrawfont{ugmr8r}{ugmr8r,8r}{8r}{8r}{ugm}{m}{n}{}
\installfont{ugmr7t}{ugmr8r,latin}{OT1}{OT1}{ugm}{m}{n}{}
\installfont{ugmr8t}{ugmr8r,latin}{T1}{T1}{ugm}{m}{n}{}
\installfont{ugmr8c}{ugmr8r,textcomp}{TS1}{TS1}{ugm}{m}{n}{}

\installrawfont{ugmrc8r}{ugmrc8r,8r}{8r}{8r}{ugm}{m}{sc}{}
\installfont{ugmrc7t}{ugmr8r,latin}{OT1}{OT1}{ugm}{m}{sc}{}
\installfont{ugmrc8t}{ugmr8r,latin}{T1}{T1}{ugm}{m}{sc}{}
\installfont{ugmrc8c}{ugmr8r,textcomp}{TS1}{TS1}{ugm}{m}{sc}{}

\endinstallfonts

\bye
---end fontugm.tex---

to create mtx, pl and vpl, which were transformed to .vf and .tfm.
Files were copied in the appropriate directories, a map file for
dvips and pdftex was written:

---ugm.map---
ugmr8r Garamond	"TeXBase1Endcoding ReEncodeFont" <8r.enc
<ugmr8a.pfb
ugmrc8r GaramondSmCaps "TeXBase1Endcoding ReEncodeFont" <8r.enc
<ugmrc8a.pfb
---end ugm.map---

and an appropriate entry was written in config.ps and pdftex.cfg,
the MikTeX Filebase was refreshed and a short example file written:

---ugmtest.tex---
\documentclass{article}

\renewcommand{\rmdefault}{ugm}

\begin{document}
abcdefghijklmnopqrstuvwxyz \\ ABCDEFGHIJKLMNOPQRSTUVWXYZ \\
\textsc{abcdefghijklmnopqrstuvwxyz}
\end{document}
---end ugmtest.tex---

No error occured while running latex on ugmtest.tex and dvips on
ugmtest.dvi. Opening ugmtest.ps with GSview shows:

Displaying page 1
Unrecoverable error: undefined in TeXBase1Endcoding
Operand stack:
0  83.022  --nostringval--  83.022  53  --nostringval--  49  39
--nostringval--  15  53  49  56  62  48  42  58  65  27  26  56
44  73  63  64  42  64  53  38  47  60  49  73  49  45  49
--nostringval--  6  34  42  33  43  32  26  36  44  23  20  40  22
66  45  42  43  41  29  28  25  43  36  51  37  36  34
--nostringval--  133  Fa

--- Begin offending input ---
33 42 34 6[49 45 49 73
49 60 47 38 53 64 42 64 63 73 44 56 26 27 65 58 42 48
62 56 49 53 15[39 49[{TeXBase1Endcoding ReEncodeFont}53
83.022 /Garamond rf end
%%EndProlog

--- End offending input ---
file offset = 34222
gsapi_run_string_continue returns -21

in an Error window, and no page.

pdflatex compiles ugmtest.tex without errors. Acrobat Reader 5.0
shows the text in Garamond, but not in small caps where requested.

I hope i did not leave out anything. What went wrong?

TIA
Chris