작은 대문자에 이탤릭체 대신 가짜 경사를 사용할 때 경고를 표시하지 않습니다.

작은 대문자에 이탤릭체 대신 가짜 경사를 사용할 때 경고를 표시하지 않습니다.

기울임꼴 작은 대문자를 사용해야 하는 작은 필요가 하나 있는데 내 글꼴에는 대문자가 부족합니다. 그래서 저는 fakeslant를 사용하고 있어요. 아래 코드는 lualatex에서 작동하지만 다음과 같은 경고 메시지가 나타납니다.

LaTeX Font Warning: Font shape `TU/SourceSerifPro(0)/m/scit' undefined
(Font)              using `TU/SourceSerifPro(0)/m/scsl' instead on input line 1

경고를 표시하지 않도록 할 수 있는 방법이 있나요?

\documentclass{article}
\usepackage{fontspec}
\setmainfont
  [ UprightFont     = *-Regular ,
    ItalicFont      = *-Italic ,
    BoldFont        = *-Semibold ,
    BoldItalicFont  = *-SemiboldIt ,
    SlantedFont     = SourceSerifPro-Regular,
    SlantedFeatures = {FakeSlant=0.2},
  ]
  {Source Serif Pro}
\begin{document}
\emph{\textsc{Hello}}
\end{document}

답변1

무해한 경고를 무시하거나 및 대신 \textsl및 를 사용할 수 있습니다 . 또는 기울어진 작은 대문자 글꼴을 기울임꼴 작은 대문자 글꼴로 설정할 수 있습니다.\slshape\textit\itshape

\documentclass{article}
\usepackage{fontspec}

\setmainfont
  [ UprightFont     = *-Regular ,
    ItalicFont      = *-Italic ,
    BoldFont        = *-Semibold ,
    BoldItalicFont  = *-SemiboldIt ,
    SlantedFont     = SourceSerifPro-Regular,
    SlantedFeatures = {FakeSlant=0.2},
    ItalicFeatures  = { SmallCapsFont = SourceSerifPro-Regular,
                        SmallCapsFeatures={Letters=SmallCaps, FakeSlant=0.2} }
  ]
  {Source Serif Pro}
\begin{document}
\emph{\textsc{Hello}}
\end{document}

소스 세리프 프로 샘플

관련 정보