I am trying to make my surname on my CV to be \textsc.
Since I wish it to have a different font from the rest of the CV, I wrap it within \setmainfont. Once I did that, the \textsc effect was gone.
MWE of \textsc not working
\documentclass[letterpaper, 11pt]{article} % Default font size and paper size
\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{Mapping=tex-text}
% LaTeX default font = Computer Modern Roman
%\setmainfont{Garamond}
%\setmainfont{Calibri}
%\setmainfont{Times New Roman}
%\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}
\usepackage{longtable}
\usepackage[hidelinks]{hyperref} % hide the links
% For the symbols
\usepackage{wasysym}
\usepackage{marvosym}
\usepackage[alpine]{ifsym}
\begin{document}
%\centering
\pagestyle{empty} % Removes page numbering
\font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section
\setmainfont{Times New Roman}{
\par{
\centering
\Huge
{
Firstname \textsc{Surname}
}
\bigskip\par
}}
\par{
\Mundus\enspace http://sites.google.com/site
\hfill
\MVAt\enspace g@icloud.com
\smallskip
\FilledHut\enspace 25 Park
\hfill
\phone\enspace 1234567
}
\end{document}

MWE of \textsc working
\documentclass[letterpaper, 11pt]{article} % Default font size and paper size
\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{Mapping=tex-text}
% LaTeX default font = Computer Modern Roman
%\setmainfont{Garamond}
%\setmainfont{Calibri}
%\setmainfont{Times New Roman}
%\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}
\usepackage{longtable}
\usepackage[hidelinks]{hyperref} % hide the links
% For the symbols
\usepackage{wasysym}
\usepackage{marvosym}
\usepackage[alpine]{ifsym}
\begin{document}
%\centering
\pagestyle{empty} % Removes page numbering
\font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section
\par{
\centering
\Huge
{
Firstname \textsc{Surname}
}
\bigskip\par
}
\par{
\Mundus\enspace http://sites.google.com/site
\hfill
\MVAt\enspace g@icloud.com
\smallskip
\FilledHut\enspace 25 Park
\hfill
\phone\enspace 1234567
}
\end{document}


\setmainfontonly takes one mandatory argument as far as I know. If you want to use a font just for a small part of the text, define a new font - not the main font as that will change it indefinitely. Obvious question: do you have a version of TNR installed which provides small capitals? What does the output on the console say? (Look for warnings about fonts/shapes which cannot be found or substitutions.) I would suggest not usingifsymif you can help it as I don't think it provides type1 fonts. Assuming people will read your CV in PDF metafont fonts are not a good idea. – cfr Oct 12 '14 at 03:30ifsymonly disables those symbols, right? If that is the case, I can live withoutifsym. After all, those symbols are just for fun. The warning says thatLaTeX Font Warning: Font shape EU1/Garamond(0)/m/sc undefined (Font) using EU1/Garamond(0)/m/n instead on input line 103.(I actually did\setmainfont{Garamond}) – Sibbs Gambling Oct 12 '14 at 03:36fontspeccan't figure out how it should be done. Do you have Garamond in small caps installed for your system? Is it available in other applications? – cfr Oct 12 '14 at 11:19\setmainfontto tellfontspecabout it. The manual explains how to do this. – cfr Oct 12 '14 at 12:14