# Text Bold with fontspec [closed]

I am trying to use:

\usepackage{fontspec}
\setmainfont{Cambria}


But I cannot manage to emphasise the text by using usual \textbf or \textit. How to do it on Mac? Or which is the closest to Cambria\Calibri default LaTeX font?

## closed as unclear what you're asking by Sverre, user13907, Jesse, Werner, darthbithMay 11 '15 at 18:13

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Are you using XeLaTeX or LuaLaTeX? – darthbith May 11 '15 at 13:27
• I use XeLaTex . – Anastasia May 11 '15 at 13:31
• You should look at the .log if you are unable to get bold or italics for an installed font. – jon May 11 '15 at 13:50
• It works for me too, maybe you haven't installed the proper fonts? You need to install the Family (regular, bold, italics, and bold italics), not just the regular font. – Alenanno May 11 '15 at 13:50
• You comment on Mico's answer below that it now works, but Mico is only doing what say you also say you are doing. The reason why you didn't get it to work must therefore be that you did something wrong (typos or something). I'm therefore voting to close. – Sverre May 11 '15 at 15:46

(I run MacTeX2015 on a MacBookPro running MacOSX 10.10.3 "Yosemite".)

I would load the Cambria and Calibri fonts via \setmainfont and \setsansfont instructions. The program runs equally well under XeLaTeX and LuaLaTeX.

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Cambria}
\setsansfont[Scale=MatchLowercase]{Calibri}
\newcommand\test{The quick brown fox jumps over the lazy dog.}

\begin{document}

\test

\textbf{\test}

\textit{\test}

\textbf{\textit{\test}}

\medskip\sffamily

\test

\textbf{\test}

\textit{\test}

\textbf{\textit{\test}}
\end{document}

• This isn't doing anything different from what the OP is claiming to have tried. Since this now works, it must mean that the OP must have done something wrong (which we can't know since no MWE was posted). I'm therefore voting to close. – Sverre May 11 '15 at 15:43