Lettrine을 사용한 다층 Goudy 이니셜

Lettrine을 사용한 다층 Goudy 이니셜

댓글에 따라 P22에서 LTC Goudy 이니셜 글꼴을 구입했습니다.이 질문---그런데 이제 패키지에서 이 글꼴을 어떻게 사용하는지 궁금합니다 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줄을 사용하여 텍스트가 이니셜 하단 위로 넘어가기 때문에 이 필요합니다.

관련 정보