4

How can I use the Coolvetica font within my document? I downloaded the fonts as a .zip file and have to install it and call it using XeLaTex.

7

Once you download the font, extract the .zip contents to your ~/.fonts directory and run fc-cache. Then, you can use the \fontspec package, loading the font with \setmainfont{Coolvetica} (if you want your entire document to use Coolvetica) or \setsansfont{Coolvetica} (if you want Coolvetica to appear only when you call \sffamily).

Your document should look minimally like this:

\documentclass{article} % choose whichever you prefer
\usepackage{fontspec}
% choose one of the following two options
\setmainfont{Coolvetica} % entire document set in Coolvetica
\setsansfont{Coolvetica} % Coolvetica appears only when \sffamily is called
\begin{document}
% voilà
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.