% !TEX root = ../manual.tex
% !TEX program = xelatexmk
% !TEX spellcheck = en_GB

\section{Fonts}
One thing you probably want to change about you document is the font. This is not one of the things \LaTeXe\ excels at. \LaTeX\ was created before fancy things like TrueType and OpenType fonts, so it doesn't have any support for them.

\LaTeX3, however, aims to fix things like this. When using \XeLaTeX\ or \LuaLaTeX\ you can make use of this using the |fontspec| package.

\subsection{\LaTeX\: Packages}
Using a font using the old way can be cumbersome. To make this easier many people have created packages with converted font files. In \fnhref{http://www.tug.dk/FontCatalogue/}{the \LaTeX\ Font Catalogue} many font packages are listed.

With such a package, usage is often very easy:
\begin{lstlisting}
\usepackage{tgtermes} % Times clone, roman (rm)
\usepackage{tgheros}  % Helvetica clone, sans-serif (sf)
\usepackage{tgcursor} % Courier clone, monospace (tt)
\usepackage[T1]{fontenc}
\end{lstlisting}

In case of a \emph{sans-serif} font you can make the |sf|-family default.
\begin{lstlisting}
\renewcommand*\familydefault{\sfdefault}
\end{lstlisting}

\subsection{\LaTeX3: Fontspec}
Usage of fontspec is a lot easier, you can just use locally installed fonts:
\begin{lstlisting}
\usepackage{fontspec}
\setmainfont{Times New Roman} % Roman (rm)
\setsansfont{Arial}           % Sans-serif (sf)
\setmonofont{Courier}         % Monospace (tt)
\end{lstlisting}