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.
otforttffont file on your local machine and upload it to your Overleaf project. – Henri Menke Feb 01 '19 at 20:26