# Changing to custom font on overleaf [closed]

I was trying to use a different font for my resume in LaTeX and after some search the following code seems to be the answer:

\documentclass{article}
\usepackage{fontspec}

\setmainfont{Calibri}

\begin{document}

Hello World

\end{document}


Since I'm using Overleaf, I was not able to run it at first, but learned to compile with XeLaTeX instead of pdfLaTeX to be able to use the fontspec package.

The problem that I have is that running this code with the setting mentioned above results in Timed Out error. I also tried with LuaLaTeX engine but I get a blank page.

## closed as off-topic by Henri Menke, Mensch, Stefan Pinnow, marmot, RaajaFeb 4 at 5:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Henri Menke, Mensch, Stefan Pinnow, marmot, Raaja
If this question can be reworded to fit the rules in the help center, please edit the question.