如何将 Helvetica 设置为字体
\setbeamerfont{title}{size*={32pt}{38.4pt},series=\bfseries}
答案1
使用family
:
\documentclass{beamer}
\usefonttheme{professionalfonts}
\usepackage{fontspec}
\setsansfont{Old Standard} % just to make it distinguishable from Helvetica
\newfontfamily\helveticalike{TeX Gyre Heros}
\setbeamerfont{title}{size*={32pt}{38.4pt},series=\bfseries,family=\helveticalike}
\begin{document}
\title{A title in Helvetica}
\author{Who}
\maketitle
\end{document}
该示例设置了一种荒谬的主字体只是为了与标题字体区分开来。