# How to set arial font only in the table

I have a table. Latex code is given below. I want to set the font of this table arial - only this table not the entire document. How do I set this?

\begin{sidewaystable}
\small
\begin{tabular}{p{5cm}p{5cm}p{5cm}p{5cm}}
\toprule

\midrule

wwww & xxxx & yyyy & zzzz \\

wwww & xxxx & yyyy & zzzz \\

\bottomrule
\end{tabular}
\caption{Caption}
\label{tab:my_table}
\end{sidewaystable}
• – Joseph Wright Jun 10 '15 at 7:20
• Do you require Arial_ or do you mean 'a sanserif font': often people are happy with a clone of Helvetica. – Joseph Wright Jun 10 '15 at 9:17

If you want to do that with pdflatex, you first have to install the winfonts package yourself in your local TeXMF tree, since, as far as I know, it is not part of MiKTeX nor TeX Live. Don't forget to run updmap at the end. Then modify the beginning of your table as:

\begin{sidewaystable}
\fontfamily{arial}\selectfont\small

If you want to compile with XeLaTeX and Arial is installed on your system, it is simpler: add to your preamble (if not already done):

\usepackage{fontspec}

and modify the beginning of your table as:

\begin{sidewaystable}
\fontspec{Arial}\small