# Change font of document title

I have used fontspec to style all of my headers with a new font with:

% Specify different font for section headings


Now I want to style my document title to use Gill Sans as well since it would match the style of the rest of the document. How do I do this?

-
It depends on the class used: KoMa classes probably have their method for managing the font for the title, the standard classes don't. The solution depends also on what you want precisely: only the title or the whole title block? –  egreg May 18 '11 at 7:50

For the standard document classes you can use the titling package to do this:

\documentclass{article}
\usepackage{titlesec}
\usepackage{titling}
\usepackage{fontspec}
% Specify different font for section headings