Today I asked a question about [the ToC formatting](https://tex.stackexchange.com/questions/132014/how-to-obtain-correct-roman-numerals-in-toc) and I came up with a very unique macro that resolve all of my problems, but when I just began to enjoy the "answer" given another problem took me at the starting point: the adding of this line

```
\usepackage{lmodern}

```

*Takes the page numbers back into upright and not small caps.*

> 
> ![enter image description here](https://i.stack.imgur.com/1c7OF.png)
> 
> 
> 

Here is the MWE:

```
\documentclass[11pt,a4paper,twoside,british,italian]{article}
%
\usepackage[T1]{fontenc}
%
\usepackage{lmodern}  % inserting this line messes up evwrything but I'd like to use the same font.
%
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{babel}
\usepackage{lipsum}
%
\usepackage[unicode=true,
 bookmarks=true,bookmarksnumbered=true,bookmarksopen=false,
 breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=true]
{hyperref}
%
\makeatletter
% Newly defined command for Hyperref/Correct symbols
\@ifpackageloaded{hyperref}{%
 \newcounter{forfunnysections}% 
 \newcommand{\addtoMYcontents}[3]{% 
  \addtocontents{#1}{%
   \protect\contentsline{#2}{#3}{{\bfseries\scshape\thepage}}{\@currentHref}%
  }\stepcounter{forfunnysections}\pdfbookmark[1]{#3}{funny.\arabic{forfunnysections}}%
 }%
}{%
 \newcommand{\addtoMYcontents}[3]{% 
  \addtocontents{#1}{%
   \protect\contentsline{#2}{#3}{{\bfseries\scshape\thepage}}%
  }%
 }%  
}
%
% define the page style, note \pagestyle{fancy} already in the preamble
\renewcommand{\sectionmark}[1]{\markboth{Sezione\ \thesection.\ #1}{}}
\renewcommand{\subsectionmark}[1]{\markright{#1}}
\fancyhf{}
\fancyhead[RE]{\nouppercase{\slshape \leftmark}}
\fancyhead[LO]{\nouppercase{\slshape \lastrightmark}}
\fancyhead[LE,RO]{\itshape \thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}
%
% create new \fancypagestyles in respect to short sections
\usepackage{slantsc}
\usepackage{extramarks} 
%
\fancypagestyle{plain}{%
\fancyhf{} 
\fancyfoot[CE,CO]{\slshape{\scshape \thepage}}  % Page numbers with my defined style
\renewcommand{\headrulewidth}{0pt}%
}
\fancypagestyle{nonTOCplain}{%
\fancyhf{} 
\fancyhead[LE,RO]{\itshape \thepage}
\renewcommand{\headrulewidth}{0pt}%
}
\fancypagestyle{TOCplain}{%
\fancyhf{} 
\fancyhead[RE]{\nouppercase{\slshape \leftmark}}
\fancyhead[LO]{\nouppercase{\slshape \lastrightmark}}
\fancyhead[LE,RO]{\slshape{\scshape \thepage}}  % Page numbers with my defined style
\renewcommand{\headrulewidth}{0.4pt}%
} 
%  
% the pages of the ToC/LoF/LoT are numbered Lowercase Roman 
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
 \pagenumbering{roman}   % I don't want "Roman" because there are too big letters!
 \thispagestyle{plain}
 \myTOC%
}
%
\makeatother
%
\begin{document}
%
\thispagestyle{plain}
\addtoMYcontents{toc}{section}{Indice Generale}
\tableofcontents{}
\clearpage{}
%
\thispagestyle{TOCplain}
\cleardoublepage{}
%
\thispagestyle{TOCplain}
\addtoMYcontents{toc}{section}{Elenco delle Figure}
\listoffigures
\clearpage{}
%
\thispagestyle{TOCplain}
\cleardoublepage{}
\pagenumbering{arabic}
%
\thispagestyle{nonTOCplain}
\section{Introduzione}
\lipsum[1]
%
\cleardoublepage{}
%
\thispagestyle{nonTOCplain}
\section{Prima sezione }
\lipsum[3]
\subsection{Prima sottosezione }
\lipsum[3]
%
\end{document}

```

The main question is that I do not know how a simple font could interact with the commands above, it's like the definition of SmallCaps that generates this issue but I'm not sure, so I wanted to know if *there exist a soliution that will keep me using `lmodern` but without the upright page numbers*