I'm writing a document using LaTeX, and I would like to use the PCR font inside of a verbatim block. [This question](https://tex.stackexchange.com/questions/120633/change-typeface-of-verbatim-environment) is almost identical to mine, but when I try to apply it to use PCR, I can't get it to work.

**This is what I am trying:**

```
% From the question I linked above:
\makeatletter
\newcommand{\verbatimfont}[1]{\def\verbatim@font{#1}}%
\makeatother

...

\verbatimfont{pcr}
\begin{verbatim}
This should be in pcr.
\end{verbatim}

```

It simply outputs: 

> 
> pcrThis should be in pcr.
> 
> 
> 

It works fine with `\verbatimfont{\scshape}`, but I can't get it to work with an actual custom font. Do I need to make my own `\pcr` command to achieve this?

Thanks in advance!