Microtype의 추적 기능은 일부 글꼴에서만 작동하지만 다른 글꼴에서는 작동하지 않습니다.

Microtype의 추적 기능은 일부 글꼴에서만 작동하지만 다른 글꼴에서는 작동하지 않습니다.

아래 코드에서 추적은libertine글꼴이 있지만Alegreya폰트. 왜 이런 현상이 발생하며 어떻게 해결할 수 있나요?

\documentclass{article}
\usepackage[tracking = true, letterspace = 100]{microtype}
\usepackage{libertine} % <- tracking works with small caps 
%\usepackage{Alegreya} % <- tracking does not work with small caps 
\begin{document}
\textls{ABCD} \textsc{abcd} \textls{\textit{ABCD \textsc{abcd}}}
\end{document}

난봉꾼:

여기에 이미지 설명을 입력하세요

알레그레야:

여기에 이미지 설명을 입력하세요

답변1

Alegreya의 작은 대문자는 모양이 아닌 계열이므로 마이크로타입의 기본 설정은 영향을 주지 않습니다. 추적을 직접 활성화해야 합니다.

\documentclass{article}
\usepackage[tracking = true, letterspace = 500]{microtype}


\usepackage{Alegreya} % <- tracking does not work with small caps
\DeclareMicrotypeSet*[tracking]{alegreyasc}   
{ font = */AlegreyaSC-TLF/*/*/* }

\begin{document}
\textit{ABCD} \textsc{abcd} 
\end{document}

답변2

명령 을 사용하여 otfinfo특정 OpenType 또는 TrueType 글꼴에 대한 정보를 찾을 수 있습니다. 특히 -f플래그를 사용하여 지원하는 기능에 대해 알아보세요.

Libertine(OpenType)과 달리 Alegreya 글꼴(TrueType)의 로마자 버전에는 작은 대문자가 없는 것 같습니다. 따라서 표시되는 작은 대문자는 기본적으로 글꼴에서 지원되지 않습니다.

저는 글꼴 전문가가 아니며 이것이 microtype. 을 추가하면 \textlsAlegreya에서도 작동합니다.

비교하다:

$ otfinfo -f /usr/local/texlive/2014/texmf-dist/fonts/opentype/public/libertine/LinLibertine_R.otf
aalt    Access All Alternates
c2sc    Small Capitals From Capitals
case    Case-Sensitive Forms
ccmp    Glyph Composition/Decomposition
cpsp    Capital Spacing
dlig    Discretionary Ligatures
fina    Terminal Forms
frac    Fractions
hlig    Historical Ligatures
kern    Kerning
lfbd    Left Bounds
liga    Standard Ligatures
lnum    Lining Figures
mark    Mark Positioning
mkmk    Mark to Mark Positioning
nalt    Alternate Annotation Forms
onum    Oldstyle Figures
pnum    Proportional Figures
rtbd    Right Bounds
salt    Stylistic Alternates
sinf    Scientific Inferiors
smcp    Small Capitals
ss01    Stylistic Set 1
ss02    Stylistic Set 2
ss03    Stylistic Set 3
ss04    Stylistic Set 4
ss05    Stylistic Set 5
ss06    Stylistic Set 6
sups    Superscript
tnum    Tabular Figures
zero    Slashed Zero

와 함께:

$ otfinfo -f /usr/local/texlive/2014/texmf-dist/fonts/truetype/huerta/alegreya/Alegreya-Regular.ttf
cpsp    Capital Spacing
dnom    Denominators
frac    Fractions
liga    Standard Ligatures
lnum    Lining Figures
numr    Numerators
onum    Oldstyle Figures
pnum    Proportional Figures
sinf    Scientific Inferiors
sups    Superscript
tnum    Tabular Figures

답변3

새로운 버전의Alegreya, 보다 적절하게 처리되도록 정의가 변경된 경우 추적은 다음과 같이 \scshape필요 없이 즉시 작동합니다.\DeclareMicrotypeSet울리케의 답변.

\documentclass{article}
\usepackage[tracking = true, letterspace = 100]{microtype}
\usepackage{Alegreya} % <- tracking now works with small caps 
\begin{document}
\textls{ABCD} \textsc{abcd} \textls{\textit{ABCD \textsc{abcd}}}
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보