I want to set the font of the text inside a frame, and also the ones inside a block to FranklinGothic. I downloaded the .ttf
files for this font, and I put them on the local path, and also installed them at /usr/share/fonts/truetype/franklingothic
. Then I use the following header in the tex file
\documentclass{beamer}
\usepackage{fontspec}
\mode<presentation>
{
\definecolor{mygreen}{cmyk}{0.82,0.11,1,0.25}
\usetheme{default} % or try Darmstadt, Madrid, Warsaw, ...
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{blocks}[rounded][shadow=false]
\setbeamercovered{transparent}
\setbeamertemplate{frametitle}
{
\begin{beamercolorbox}[ht=2.9em,wd=0.8\paperwidth]{frametitle}
\insertframetitle
\end{beamercolorbox}
}
\definecolor{cool_blue}{RGB}{35,137,154}
\definecolor{cooler_blue}{RGB}{0,72,81}
\usefonttheme{structurebold}
\setbeamercolor{titlecolor}{fg=cool_blue}
\setbeamercolor{titlelike}{parent=titlecolor}
\setbeamercolor{normal text}{fg=cooler_blue}
\usebeamercolor[fg]{normal text}
\setbeamerfont{frametitle}{family={\fontspec{calibri}}}
\setbeamerfont{example text}{family={\fontspec{FranklinGothic}}}
}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\begin{document}
\begin{frame}{Background}
sample text
\end{frame}
\end{document}
Yet, I don't see the FranklinGothic font inside the frame