When I change the font from default to pcr (by following this answer here) it seems that my text loses its alignment (justified) and the text covers the margin.
Here is a minimal working example:
\documentclass{article}
\usepackage{geometry, ragged2e}
\usepackage{lipsum}
\begin{document}
\section{Properly aligned (justified) with default font}
\lipsum[1]
\section{I change font to pcr and the text is not properly aligned}
\fontfamily{pcr}\selectfont
\lipsum[1]
\end{document}


