# How do I use font cls files in LaTeX

How do I install fonts into latex in ubuntu 16.04?

The template, deedy-resume that I am trying to use requires XeTeX to compile and fontspec is throwing errors. The font files I have are .ttf format. I have put the .cls file in the same directory as my .tex document.

I found the root folder /usr/local/share/texmf and sudo cp the .ttf files in there but that doesn't seem to work? I also tried copying the .ttf files into ~/.fonts/ with the folder structure ~/.fonts/font1/*.ttf, ~/.fonts/font2/*.ttf and that doesn't work either.

\documentclass[a4paper]{deedy-resume-openfont}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}

\begin{document}

\namesection{Whos}{Who}{ \urlstyle{same}\href{http://example.io}{MEEEEE}\\
\href{mailto:email@gmail.com}{email@gmail.com}
}

\begin{minipage}[t]{0.33\textwidth}

\section{Education}

\subsection{University}
\descript{Degree}
\descript{Degree}
\location{Dec 2016 | Virginia}
\sectionsep

\end{minipage}
\end{document}


The fonts I put in /user/share/fonts/truetype as per the comments.

• (1) texmaker is not related to this issue (2) please explain how fonts and cls files are associated. In short, please explain what iøyou have and what you are trying to do. As your question is now it is very unclear – daleif Oct 13 '16 at 15:16
• "how do I install fonts into latex in ubuntu 16.04?" if the font is installed on your system in the normal way, XeTeX should be able to find it. It should probably be in /usr/share/fonts/truetype/. If it's there, and something's not working, your problem is probably with the way you're trying to use XeTeX, rather than the font being improperly installed. Please provide a full MWE – Au101 Oct 13 '16 at 15:51
• Try this: (1) In Terminal, mktexlsr just in case you manually placed a file and forgot to update TeX. That's probably not the problem. (2) What happens if you place a copy of the fonts directly in the same folder as your main *.tex document? – user139954 Dec 14 '17 at 21:18
• This cannot be answered properly without a link to the class and (possibly or) the text of the error message you receive. We don't even know which fonts you have or why those are the ones you think the class wants. – cfr Dec 17 '17 at 3:19
• @RobtAll mktexlsr isn't relevant for system-installed fonts. If the problem was of that kind, mktexlsr wouldn't be sufficient. – cfr Dec 17 '17 at 3:20