[Tex/LaTex] How to get \texttt with bold face in LaTeX

boldfontstypewriter

This question was asked and answered 20 years ago but I wonder if there is a more modern solution today that does not involve quite so much hackery with overriding settings in font files.

I want my font to look exactly like the result of \texttt but in bold face.

How might I achieve this?

Best Answer

Use Bera Mono:

[...]
\usepackage[T1]{fontenc}
\usepackage{libertine}%% Only as example for the romans/sans fonts
\usepackage[scaled=0.85]{beramono}
[...]
\begin{document}
\texttt{\textbf{foo}}
Related Question