[Tex/LaTex] Sharelatex Arial font

fontssharelatex

I would like to use Arial font in a document in Sharelatex.

I have found in other posts that I should use XeLatex or LuaLatex:

\usepackage{fontspec}
\setmainfont{Arial}

Xelatex is giving error due to a timeout. And LuaLatex return an error:

 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!
! fontspec error: "font-not-found"
! 
! The font "Arial" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

l.24 \setmainfont{Arial}

|'''''''''''''''''''''''''''''''''''''''''''''''
| A font might not be found for many reasons.
|  Check the spelling, where the font is installed etc. etc.
| 
|  When in doubt, ask someone for help!
|...............................................

Someone have a clear and easy method to solve my question?

Best Answer

Thanks to Merijn comment and this page, I found a solution :

The .ttf should be add to the project. And then the use specify in the main file :

example :

\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Arial.ttf}
\begin{document}
This is the document text; 
\end{document}