[Tex/LaTex] Change the \frametitle font size; height also affected

beamerfontsizesectioning

I want to change only the \frametitle font size. Changing this, is the height of the frame title going to decrease also? Because I want that.

I'm using the Warsaw theme.

Best Answer

Yes; changing the font size will also affect the height of the frametitle template. However, depending on the theme used the effect will be different; using Warsaw:

An image of the default frametitle height:

enter image description here

and with \tiny font size (as in the example code):

enter image description here

\documentclass{beamer}
\usetheme{Warsaw}
\setbeamerfont{frametitle}{size=\tiny}

\begin{document}

\begin{frame}
\frametitle{A test frame}
Test
\end{frame}

\end{document}

And using CambridgeUS:

\documentclass{beamer}
\usetheme{CambridgeUS}
\setbeamerfont{frametitle}{size=\tiny}

\begin{document}

\begin{frame}
\frametitle{A test frame}
Test
\end{frame}

\end{document}

An image of the default frametitle height:

enter image description here

and with \tiny font size (as in the example code):

enter image description here

The change can be locally applied to some specific frame(s), as the following example illustrates:

\documentclass{beamer}
\usetheme{Warsaw}

\begin{document}

\begin{frame}
\frametitle{A test frame}
Test
\end{frame}

{
\setbeamerfont{frametitle}{size=\tiny}
\begin{frame}
\frametitle{A test frame}
Test
\end{frame}
}

\begin{frame}
\frametitle{A test frame}
Test
\end{frame}

\end{document}