I have a problem compiling a resume in Texmaker using XeLatex. Any help on this is much appreciated. It seems the problem is finding the fonts from the package fontspec.
My code
\documentclass[a4paper,11pt]{article} % Default font size and paper size
\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin} % Main document font
\usepackage{xunicode,xltxtra,url,parskip} % Formatting packages
\usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors
\usepackage[big]{layaureo} % Margin formatting of the A4 page, an alternative to layaureo can be \usepackage{fullpage}
% To reduce the height of the top margin uncomment: \addtolength{\voffset}{-1.3cm}
\usepackage{hyperref} % Required for adding links and customizing them
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document
\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] % Text formatting of sections
\titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections
\begin{document}
\pagestyle{empty} % Removes page numbering
\font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section
The title format and title spacing should be correct as suggested in:
Problems with fontspec and titlesec packages
Also i have downloaded the latest version of Texmaker and made sure that the fonts are installed. I do not know if they are located in the correct directory as i did have some problems with compiling after upgrading to EL Capitan on my mac. This problem was solved using this guide:
TexMaker (and TexShop) not working after installation of El Capitan
The error i get

\font\fb=''[cmr10]''is a big mistake. – egreg Nov 22 '15 at 14:32\font\fb=''[cmr10]''bit) if you run it under LuaLaTeX instead of XeLaTeX? – Mico Nov 22 '15 at 14:40\font\fb=''[cmr10]''is just wrong however you look at it, you shouldn't use\fontwith latex and the syntax for file names uses"not two'– David Carlisle Nov 22 '15 at 15:17\end{document}at the end of your MWE, comment the\font\fb=''[cmr10]'and\setmainfont...and add some text in the document. Can you verify this on your macOS machine? – Budo Zindovic Nov 05 '16 at 23:29