
私は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 フォントで文字に出力されますが、行の高さは 5 ではなく 1 です。
答え1
そうですね、これは実に愚かな質問でした。新しいコマンドを定義して修正しました。
\newcommand{\Lettrine}[2]{\lettrine[depth=1]{\initialmaker{#1}}{#2}}
depth
フォントが 5 行ではなく 6 行を使用するようになり、テキストがイニシャルの下部からはみ出すため、 が必要になります。