\documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{times.ttf} \title{Sample font document} \author{Overleaf} \date{\today} \begin{document} \maketitle This is an \textit{example} of a document compiled with \textbf{XeLaTeX}. LuaLaTeX should also work too. \end{document}

Console Output:

		
Check source code to see how to supply your own fonts to our engines.