[Tex/LaTex] Libertine monospaced font seems to big

libertinetypewriter

I'd like to write a document with the Libertine font (using the libertine package). I have a couple of code snippets in the text, and to me it seems like the Libertine Mono font that is used by the package is too large compared to the rest of the text (notice the 'x'-height):

compared to the same snippet using Computer Modern:

Is there something wrong with my setup, or is that just the way Libertine Mono is supposed to look? If that's the case, is there a way to automatically use a slightly smaller text size for all monospaced output (\texttt, \verb, listings…)?

\documentclass[border=5mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage{libertine}

\begin{document}
abc \texttt{abc}
\end{document}

Best Answer

It can be scaled using a package option \usepackage[ttscale=.875]{libertine} (you need to play with the value a bit, this is just an initial guess):

\documentclass[border=5mm]{standalone}
\usepackage[T1]{fontenc}
\usepackage[ttscale=.875]{libertine}

\begin{document}
some text \texttt{monospaced} and normal text
\end{document}

enter image description here