我想在图表中使用无衬线字体,所以我认为包含\sffamily
就足够了,但发生了一些奇怪的事情。
我包含一个 MWE,其中第一个图表使用衬线字体绘制,第二个图表使用无衬线字体绘制。它们之间的唯一区别是设置字体大小的行。这种行为可以吗?
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{smartdiagram}
\begin{document}
\begin{figure*}
\begin{center}
\smartdiagramset{uniform sequence color=true,
sequence item uniform color=gray!50,
sequence item border color=black,
sequence item text color=black,
sequence item border size=1.2\pgflinewidth
}
\sffamily
\smartdiagram[sequence diagram]{PGF,Ti\textit{k}Z,Smartdiagram}
\end{center}
\caption{A sequence diagram.}
\label{figure.seq2}
\end{figure*}
\begin{figure*}
\begin{center}
\smartdiagramset{uniform sequence color=true,
sequence item uniform color=gray!50,
sequence item border color=black,
sequence item text color=black,
sequence item border size=1.2\pgflinewidth,
sequence item font size=\normalsize
}
\sffamily
\smartdiagram[sequence diagram]{PGF,Ti\textit{k}Z,Smartdiagram}
\end{center}
\caption{A sequence diagram using sans serif.}
\label{figure.seq}
\end{figure*}
\end{document}