[Tex/LaTex] Define a separate font for slide titles in Beamer

beamerfonts

(I sincerely hope this question hasn't been asked; if so my apologies, I wasn't able to locate it.)

I have started defining my own themes more and more lately in Beamer, including changing the font, to make it look less standard. Now I'm looking for a (relatively) easy way to define a different type of font for the titles as compared to the regular text.

Titles would include: \title, \frametitle and \framesubtitle.
Regular text is then anything from text to \footnote, to the boxes and such.

Let's say I would want Cyklop for my titles (http://www.tug.dk/FontCatalogue/cyklop/) and Malvern (http://www.tug.dk/FontCatalogue/malvern/) for the regular text. What would be the best way to do this?

Thanks so much in advance!
DD

Best Answer

Here's one possibility using pdfLaTeX; I choose Cyklop for the titles and Iwona for the regular text; I didn't use the originally requested Malvern font since the Font Catalogue warns:

The package as it is on CTAN is based on a LaTeX2.09 installation. Some support for LaTeX2e is available, though buggy.

Basically waht you do is to set the apropriate font for the elements using \setbeamerfont; for the regular text you have the normal text font, but another option is to change the sans-serif family used (as I did in my example).

The beamer manual can help you with the available fonts that are modifiable through \setbeamerfont. Ahother useful source could be the beamer appearance cheat sheet.

\documentclass{beamer}
\usetheme{CambridgeUS}

\usepackage[T1]{fontenc}
\usepackage{lipsum}

\setbeamerfont{title}{family=\fontfamily{cyklop}\selectfont}
\setbeamerfont{frametitle}{family=\fontfamily{cyklop}\selectfont}
\setbeamerfont{framesubtitle}{family=\fontfamily{cyklop}\selectfont}
\renewcommand{\sfdefault}{iwona}
\usefonttheme{professionalfonts}

\begin{document}

\begin{frame}
\frametitle{Test frame title}
\framesubtitle{Test frame subtitle}
\lipsum[4]
\end{frame}

\end{document}

enter image description here

Another options is to use XeLaTeX and appropriate fonts.