小文字大文字にイタリック体ではなく偽斜体を使用する場合の警告を抑制します

小文字大文字にイタリック体ではなく偽斜体を使用する場合の警告を抑制します

斜体の小文字大文字を使用する必要があるのですが、私のフォントにはそれがありません。そのため、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

この警告は無害なので無視するか、andの代わりに\textsland を使用します。または、斜体の小文字大文字フォントとして、斜体の小文字大文字フォントを設定することもできます。\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}

Source Serif Pro サンプル

関連情報