# Using OCR-B as default TT font with T1 fontenc

I would like to use the OCR-B font provided by the ocr package as the default mono font in my document. Because of other font choices, I would also like to use the T1 fontenc.

The below MWE compiles with this warning and the "TT Test" text comes out in Computer Modern:

LaTeX Font Warning: Font shape T1/ocrb/m/n' undefined
(Font)              using T1/cmr/m/n' instead on input line 9.

\documentclass[convert, varwidth]{standalone}
\usepackage{ocr}
\usepackage[T1]{fontenc}

\renewcommand*{\ttdefault}{ocrb}

\begin{document}
Roman Test
\texttt{TT Test}
\end{document}


This works properly without the T1 fontenc.

Is it possible to mix font encodings in this way?

\documentclass{article}