# [Tex/LaTex] Shrinking monospace style for listings package

fontsizelistingstypewriter

I am working on a thesis and putting together a "pretty" listing. I'm looking at setting up a small font style for a code view. What I have here is:

\usepackage{listings}
\lstset{language=C,
numberstyle=\footnotesize,
basicstyle=\footnotesize,
numbers=left,
stepnumber=1,
breaklines=true}
%\usepackage[subsection]{placeins}
\usepackage{float}


But this comes out in a typical kerned font, vs. I am looking for smaller monospace, say, 10 points or so.

Use the default

basicstyle=\footnotesize\ttfamily,...


or better with package microtype

\usepackage[T1]{fontenc}
\usepackage[scaled]{beramono}
\newcommand\Small{\fontsize{9}{9.2}\selectfont}
\newcommand*\LSTfont{\Small\ttfamily\SetTracking{encoding=*}{-60}\lsstyle}
...
\begin{lstlisting}[basicstyle=\LSTfont,...]
...


Which gives a better result.