How can I increase the font size in moderncv
?
The font size in \documentclass
is currently ignored.
I only found solutions to change \namefont
, \titlefont
, \addressfont
, \quotefont
, \sectionfont
, \subsectionfont
, \hintfont
and \pagenumberfont
.
But I want to change the standard font size.
Defining my own Mycventry according to Change body font in moderncv without affecting the other fonts is a solution.
However redefining the \cventry
with \xpatchcmd
as suggested at Moderncv: \cvitem text is too large does not work.
Here is an example:
\documentclass[22pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\firstname{Font}
\familyname{Size}
\newcommand\Mycventry[6]{\cventry{#1}{#2}{#3}{#4}{#5}{\Huge#6}} % this works
\usepackage{xpatch}
\xpatchcmd{\cventry}{#6}{\Huge #6}{}{} % this does not work
\begin{document}
\maketitle
\section{Test Section}
\Mycventry{2012}{Title}{Institute}{City}{}{Mycventry font size working.}
\cventry{2012}{Title}{Institute}{City}{}{cventry font size not working.}
\end{document}
Best Answer
If you really want an oversized CV, you can load the
extsizes
package;moderncv
only accepts10pt
,11pt
and12pt
.The maximum font size provided is 20pt.