
我從 P22 購買了 LTC Goudy Initials 字體——根據評論這個問題---但現在我想知道如何在包中使用這種字體lettrine
。
下面是我的最小非工作範例:
\documentclass{article}
% Load the three layers of the LTC Goudy Initials font
\usepackage{fontspec}
\newfontface\firstlayer{LTCGoudyInitNew.otf}
\newfontface\secondlayer{LTCGoudyInitFlora.otf}
\newfontface\thirdlayer{LTCGoudyInitFill.otf}
% Create a command to print all three layers - later in color
\newcommand{\initialmaker}[1]{%
\firstlayer{#1}%
\llap{\secondlayer{#1}}%
\llap{\thirdlayer{#1}}%
}
\usepackage{lettrine,lipsum}
\setcounter{DefaultLines}{5}
\renewcommand{\LettrineFont}{\initialmaker}
\begin{document}
\lettrine{H}{ello world}
\lipsum[4]
\lipsum[3]
\end{document}
字母中的輸出採用所需的 Goudy 字體,但行高為 1,而不是 5。
答案1
好吧,這真是個愚蠢的問題。我透過定義一個新命令來修復它:
\newcommand{\Lettrine}[2]{\lettrine[depth=1]{\initialmaker{#1}}{#2}}
這depth
是必需的,因為字體現在使用六行而不是五行,導致文字超出首字母的底部。