# make the listings package character font just like the rest of the document

The listings package font is somehow different from the rest of the document. I want to see exactly same font.

E.g. in the example below, I want to see both "Hello World"s to look exactly same (except the indentation).

\documentclass[]{article}
\usepackage{listings}
\begin{document}

Hello

World

\begin{lstlisting}
Hello
World
\end{lstlisting}

\end{document}

Below is when I zoom in using an image program. Left is the usual article text, right is the listing. I can see following differences: 1- listing characters have one more pixels between them. 2- Somehow they have subtle differences, e.g. look to the bottom of "d", or top of "W".

• please read its package document – Mogic Mar 22 '18 at 8:50