4

There are so many threads about using different fonts in many ways, but still not what I'm looking for. I need to use Calibri Light as my main font, but then I can not have anything in bold. Using Calibri (not Light) works, but then my normal text is not Light. How can I solve this? I might need to switch back and forth between the two and of course the best solution would be to just use \textbf with Calibri Light as the main font. Any suggestions?

Here is a minimum example:

\documentclass[11pt, oneside, a4paper]{report}
\usepackage{fontspec}
    \setmainfont{Calibri Light}
\begin{document}
    This is normal text, while ... \\
    ... \textbf{this should be bold, but it is not!}
\end{document}

Oh, and I use lualatex since pdflatex cannot deal with Calibri.

  • 2
    I think you should revert your edit, the problem with the table is unrelated to the original question, you have simply used the wrong command, you want \bfseries to make all the text bold (just as you used \color not \textcolor to make it all red. – David Carlisle Aug 8 at 15:25
5

enter image description here

\documentclass[11pt, oneside, a4paper]{report}
\usepackage{fontspec}
    \setmainfont[BoldFont=Calibri]{Calibri Light}
\begin{document}
    This is normal text, while ... \\
    ... \textbf{this should be bold, but it is not!}
\end{document}
  • Wow, that was simple! Now I experience a similar behaviour within a \table environment. Edited my question accordingly. – s6hebern Aug 8 at 15:21
  • I see, in that case I'll just accept and post another question. – s6hebern Aug 8 at 15:26
  • @s6hebern I answered the table question in comments above – David Carlisle Aug 8 at 15:27
  • Works smoothly, thanks! – s6hebern Aug 8 at 15:30
  • 1
    @s6hebern yes I only used Calibri above as regular is "bold" if you start from light (by the way it is starting from light that means you have to do this, fontspec has quite good heuristics for finding the matching font names for different styles if you start from a "regular" font, but it can not handle this so you need to specify the style variants by hand) sometimes this is needed anyway if the font designer has given more or less exotic names to the variants – David Carlisle Sep 19 at 12:20

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.