0

Why does the change of the font family (from sans to roman) remove the boldness of sections headers and entries titles?

\RequirePackage{luatex85}
\documentclass[12pt,roman]{moderncv}
\usepackage[tuenc]{fontspec}

\moderncvstyle{banking}
\name{Diaa}{Abidou}
\begin{document}
    \makecvtitle
    \section{Education}
    \cvitem{Title}{Some Title}
\end{document}

enter image description here

  • because the font setup of moderncv is a mess. You should better reset it after loading the style to whatever font you really want to use (and better don't load fontspec yourself). – Ulrike Fischer Dec 12 '17 at 11:47
  • @UlrikeFischer I would be grateful if you could tell me how to reset the font setup in view of my MWE. – Diaa Dec 12 '17 at 16:00
1

Comment the codes of \usepackage[tuenc]{font spec} you will get the bf shape again! The reason is that in the fontspec package, it doesn't set the shape of bfseries font!

\RequirePackage{luatex85}
\documentclass[12pt,roman]{moderncv}
%\usepackage[tuenc]{fontspec}

\moderncvstyle{banking}
\name{Diaa}{Abidou}
\begin{document}
    \makecvtitle
    \section{Education}
    \cvitem{Title}{Some Title}
\end{document}

The following is the PDF style enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.