[Tex/LaTex] Working with arial or helvetica fonts

fonts

I want to use arial font, but it doesn't generate any document. I'm using Texpad software. I tried with helvet package, but it doesn't work. Here's my code, maybe I'm not right. Can you help me?

\documentclass[10pt, a4paper]{article}

\usepackage{fontspec}
\setmainfont{Arial}
\usepackage{lipsum}
\usepackage[ampersand]{easylist}

\begin{document}

\tableofcontents
\newpage
\section{TITLE}
\section{TITLE}
\subsection{Subtitle}
\subsection{Subtitle}
\section{TITLE}
\lipsum
\subsection{Subtitle}
\subsection{Subtitle}
\subsubsection{Title}
\begin{easylist}
& Title
& Title
&& Subtitle
&&& Title
& Title
\end{easylist}
\subsubsection{Title}
\subsection{Subtitle}
\section{TITLE}
\subsection{Subtitle}
\subsubsection{Title}

\end{document}

Best Answer

Your code works perfectly for me but it must be compiled by XeTeX, not with pdflatex. Note also that you must have that True Type Font (.ttf) available in your system.

To obtain the default sans serif font with pdflatex, basically you only need add this line to the preamble, without any package:

\renewcommand*\familydefault{\sfdefault} 

To use the helvetica font as the default font with pdflatex you can add these lines:

\usepackage[scaled]{helvet}
\renewcommand\familydefault{\sfdefault} 
\usepackage[T1]{fontenc}

Please note that you cannot use \usepackage{fontspec} with pdflatex.

Tip: Go to http://www.tug.dk/FontCatalogue/sansseriffonts.html for many other options.