Change whole font to arial in overleaf

fontfamilyoverleaf

I want to know which command i have to use to set the whole document font from times to arial in overleaf? i have seen some threads suggesting to use helvet which is close to arial.

It would be a huge help if you could suggest me the code for arial font and where to put it.

Regards,
SZ

Best Answer

If you are working in overleaf, then use XeLaTeX or LuaLaTeX compiler and add these commands in preamble after \documentclass{}:

\usepackage{fontspec}
\setmainfont{Arial}