[Tex/LaTex] How to define a new font family on Beamer

beamerfonts

How to define a new font family on Beamer?

I've tried this way, but I get Undefined control sequence :

\newfontfamily\fff{xxx.ttf}

Any good idea, please?

Thanks in advance!

Best Answer

\documentclass[12pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage{biblatex}
\newcommand\palatino{\fontfamily{ppl}\selectfont}

\begin{document}

\begin{frame}{\palatino Title in Palatino}{Subtitle}
foo
\end{frame}

\end{document}

A list of the family names for pdftex is available here: http://mirrors.ctan.org/info/fontname/fontname.pdf (p. 30ff)

If you want to use a TrueType or OpenType font then use xelatex or lualatex. Then it is easier, for example:

\newfontfamily\DVS{Deja Vu Sans}