# Cannot compile xelatex template

I try to create my CV using the following template two-columns, one page. I manage to find the fonts in .ttf format and installed them in my win7 system.

However, I get an error of "font-not-found" when I try to compile the xelatex file using texmaker and miktex 2.9

Update [16/07/2015]

Thanks to Leucippus I solved font problems. However, Texmaker provides the following

How can I overcome these problems?

• To fix the direct error you will have to obtain the .ttf, .tfm, etc font files and install them in the file folder where the latex resume is located. I changed the font to one I liked better, using the same procedure just listed. – Leucippus Jul 15 '15 at 20:31
• Why should i do that since xelatex detects ttf installed in my system – Yorgos Jul 15 '15 at 21:31
• If the configuration that you have set up automatically finds the files then work with what you have. Otherwise, based on the fontspec documentation, mirrors.ibiblio.org/CTAN/macros/latex/contrib/fontspec/…, page 6 gives an example of listing the .otf (or .ttf, .tfm,...) file name. – Leucippus Jul 15 '15 at 21:38
• \underfull \hbox usually indicates that the line indicated is not full enough to be complete. Possibly adding a word or more fixes the error, or centering small word sets will justify the space requirements. Here is one cause of the bad-box error tex.stackexchange.com/questions/199635/… – Leucippus Jul 16 '15 at 14:01
• Font shape undefined could be a problem with the linking of the .ttf/.otf/etc file and the file being worked on. One method of solution may be to place a copy of the font file in the same folder as the document being worked on. Another cause could be that the required letter/shape/etc may not be defined by that font type. – Leucippus Jul 16 '15 at 14:09

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Two Column One Page Curriculum Vitae
% LaTeX Template
% Version 1.1 (24/1/13)
%
% http://www.LaTeXTemplates.com
%
% Original author:
% Alessandro (The CV Inn)
%
% IMPORTANT: THIS TEMPLATE NEEDS TO BE COMPILED WITH XeLaTeX
%
% This template uses several fonts not included with Windows/Linux by
% default. If you get compilation errors saying a font is missing, find the line
% on which the font is used and either change it to a font included with your
% operating system or comment the line out to use the default font.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[10pt]{article} % Font size - 10pt, 11pt or 12pt

\usepackage[hmargin=1.25cm, vmargin=1.5cm]{geometry} % Document margins

\usepackage{marvosym} % Required for symbols in the colored box
\usepackage{ifsym} % Required for symbols in the colored box

\usepackage[usenames,dvipsnames]{xcolor} % Allows the definition of hex colors

% Fonts and tweaks for XeLaTeX
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text]{Hoefler Text} % Main document font
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans.ttf} % Font for your name at the top
%\setmonofont[Scale=MatchLowercase]{Andale Mono}

\usepackage{hyperref}
\definecolor{shade}{HTML}{F5DD9D} % Peach color for the contact information box
\definecolor{text1}{HTML}{2b2b2b} % Main document font color, off-black

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
% Example footer:
%\rfoot{\color{headings} {\sffamily Last update: \today}. Typeset with Xe\LaTeX}

\usepackage{titlesec} % Allows creating custom \section's

% Format of the section titles
\scshape\Large\raggedright}{}{0em}{}[\color{black}\titlerule]

\titlespacing{\section}{0pt}{0pt}{5pt} % Spacing around titles

\begin{document}

\color{text1} % Sets the default text color for the whole document to the color defined as 'text1'

%----------------------------------------------------------------------------------------
%   TITLE
%----------------------------------------------------------------------------------------

\par{\centering{\sffamily\Huge John Smith}\\ % Your name
{\color{headings}\fontspec[Variant = 2]{ZapfinoExtraLT-One.otf} Curriculum {Vit\fontspec[Variant = 3]{ZapfinoExtraLT-One.otf}\ae}\\[15pt]\par} % Curriculum vitae text in the Zapfino font

%----------------------------------------------------------------------------------------

\begin{minipage}[t]{0.5\textwidth} % Start the left-hand side of the page
\vspace{0pt} % Trick for alignment

%----------------------------------------------------------------------------------------
%   WORK EXPERIENCE
%----------------------------------------------------------------------------------------

\section{Work Experience}

%------------------------------------------------
% WORK EXPERIENCE 1
%------------------------------------------------

{\raggedleft\textsc{Current, from Jan 2009}\par}

{\raggedright\large Trader at Enoi s.p.a., Milan\\

\normalsize{Provided analysis of spreads, in particular time and location spreads, with emphasis on trading opportunities on the curve, also taking into account the availability of storage facilities. Became familiar with logistic implications of physical gas trading and developed knowledge of continental virtual hubs for gas exchange.}\\

%------------------------------------------------
% WORK EXPERIENCE 2
%------------------------------------------------

{\raggedleft\textsc{July 2008 -- Oct 2008}\par}

{\raggedright\large 1\textsuperscript{st} year Analyst at \textsc{Lehman Brothers}, London\\

\normalsize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (ags, oils, precious and base metals), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\

%------------------------------------------------
% WORK EXPERIENCE 3
%------------------------------------------------

{\raggedleft\textsc{Summer 2007}\par}

{\raggedright\large Summer Intern at \textsc{Lehman Brothers}\\
\textit{Capital Markets}\\[5pt]}

\normalsize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated truly distinctive" for Analytical Skills and Teamwork.}\\

%------------------------------------------------
% WORK EXPERIENCE 4
%------------------------------------------------

{\raggedleft\textsc{Current, from Jan 2009}\par}

{\raggedright\large Trader at Enoi s.p.a., Milan\\

\normalsize{Provided analysis of spreads, in particular time and location spreads, with emphasis on trading opportunities on the curve, also taking into account the availability of storage facilities. Became familiar with logistic implications of physical gas trading and developed knowledge of continental virtual hubs for gas exchange.}\\

%------------------------------------------------
% WORK EXPERIENCE 5
%------------------------------------------------

{\raggedleft\textsc{July 2008 -- Oct 2008}\par}

{\raggedright\large 1\textsuperscript{st} year Analyst at \textsc{Lehman Brothers}, London\\

\normalsize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (ags, oils, precious and base metals), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\

%----------------------------------------------------------------------------------------

\end{minipage} % End the left-hand side of the page
\hfill
\begin{minipage}[t]{0.44\textwidth} % Start the right-hand side of the page
\vspace{0pt} % Trick for alignment

%----------------------------------------------------------------------------------------
%   COLORED BOX
%----------------------------------------------------------------------------------------

\begin{tabular}{c|p{7cm}}
\raisebox{-3pt}{\Mobilefone} & +1 (1)23 4567890 \\ % Phone number
\raisebox{-1pt}{\Letter} & \href{mailto:john@smith.com}{john@smith.com} \\ % Email address
\Keyboard & \href{http://www.johnsmith.com}{http://www.johnsmith.com} \\ % Website
\end{tabular}
}
}\\[10pt]

%----------------------------------------------------------------------------------------
%   EDUCATION
%----------------------------------------------------------------------------------------

\section{Education}

\begin{tabular}{rl} % Start a table with two columns, one for dates and one for qualifications

%------------------------------------------------
% EDUCATION 1
%------------------------------------------------

2011 -- \textsc{Present} & \textbf{Doctor of Philosophy} \\
& \textsc{Computer Science} \\
& \textit{The University of California}\\
&\\

%------------------------------------------------
% EDUCATION 2
%------------------------------------------------

2010 & \textbf{Master of Science} \\
& \small First Class Honours \\
& \textsc{Computer Science} \\
& \textit{The University of California}\\
&\\

%------------------------------------------------
% EDUCATION 3
%------------------------------------------------

& \small Distinction \\
& \textsc{Computer Science} \\
& \textit{The University of California}\\
&\\

%------------------------------------------------
% EDUCATION 4
%------------------------------------------------

2006 -- 2008 & \textbf{Bachelor of Business Studies}\\
& \textsc{Commerce} \\
& \textit{The University of California}

%----------------------------------------------------------------------------------------

\end{tabular}\\[10pt]

%----------------------------------------------------------------------------------------
%   AWARDS
%----------------------------------------------------------------------------------------

\section{Awards}

\begin{tabular}{rl}
2010     & \textbf{Faculty of Science Masters Scholarship}\\
& \textit{The University of California}\\ \\

%------------------------------------------------

2008     & \textbf{Top Achiever Award -- Commerce}\\
\end{tabular}\\[10pt]

%----------------------------------------------------------------------------------------
%   COMPUTER SKILLS
%----------------------------------------------------------------------------------------

\section{Computer Skills}

\begin{tabular}{rl}
Basic Knowledge
& \\
Intermediate Knowledge
& \textsc{python}, \textsc{html}, \LaTeX,\\
& OpenOffice, Linux,\\
& Microsoft Windows \\
& Computer Hardware \& \\
& Support\\ \\
\end{tabular}

%----------------------------------------------------------------------------------------
%   COMMUNICATION SKILLS
%----------------------------------------------------------------------------------------

\section{Communication Skills}

\begin{tabular}{rl}
\textsc{Conferences}
& Oral Presentation at the California \\
& Computer Science Conference -- 2010\\
& \\
\textsc{Posters}
& Poster at the Annual Programming \\
& Conference in Oregon -- 2009 \\
\end{tabular}\\[10pt]

%----------------------------------------------------------------------------------------

\end{minipage} % End right-hand side of the page

\end{document}


The fonts used are from: