roboto condensed を使用すると他のフォントのイタリック体で問題が発生する

roboto condensed を使用すると他のフォントのイタリック体で問題が発生する

私の本の原稿の本文で斜体がすべて欠落していることに気付きました ( を使用\textit{})。

問題は、フォントとして Roboto Condensed を使用していることに絞り込まれました。

\documentclass{scrbook} 

\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc} 
\usepackage{fbb}           
%If I unclude the next line, the “text” will no longer be in italiscs
%\usepackage[condensed]{roboto} 

\begin{document}

Test \textit{text}.

\end{document}

Roboto 行のコメントを解除すると (または単に「condensed」を削除すると)、「text」は斜体ではなくなります。

古いバージョンを見て、斜体文字がまだ残っていた 2019 年半ばのバージョンを再コンパイルしました。再コンパイル後、斜体文字も消えました。TeX Live 2019 の変更と関係があると思います。この問題に対処する方法について何かアイデアはありますか?

役に立つかどうかはわかりませんが、roboto condensed の使用時に問題が発生するログの部分を次に示します。

(/usr/local/texlive/2020/texmf-dist/tex/latex/fbb/T1fbb-TLF.fd)

LaTeX Font Warning: Font shape `T1/fbb-TLF/c/n' undefined
(Font)              using `T1/fbb-TLF/m/n' instead on input line 112.

)) (/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
) (./Test.aux) (/usr/local/texlive/2020/texmf-dist/tex/latex/ly1/ly1ptm.fd)

LaTeX Font Warning: Font shape `T1/fbb-TLF/c/it' undefined
(Font)              using `T1/fbb-TLF/c/n' instead on input line 10.


LaTeX Font Warning: Font shape `T1/fbb-TLF/c/sl' undefined
(Font)              using `T1/fbb-TLF/c/it' instead on input line 12.

[1{/usr/local/texlive/2020/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./Test.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

答え1

理由は不明ですが、オプション is を指定して、 を whichにroboto.sty再定義します。\mddefault\mddefault@sfcondensedc

fbbではコンデンス シリーズが提供されないため、フォントが置換されます。

誤った警告を回避する修正方法を以下に示します。

\documentclass{scrbook}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\DeclareFontShape{T1}{cmr}{c}{n}{<->ssub*cmr/m/n}{} % avoid a spurious warning

% first roboto to avoid other spurious warnings
\usepackage[condensed]{roboto}

\usepackage{fbb}

% fix the bad declaration made by roboto
\renewcommand{\seriesdefault}{m}

\begin{document}


Test \textit{text}.

\textsf{Condensed}

\end{document}

ここに画像の説明を入力してください

答え2

roboto はシリーズのデフォルトを condensed に強制します (roboto がサンセリフにのみ使用される場合、これは奇妙な選択だと思います)。ただし、fbb はこのシリーズをサポートしていません。

\documentclass{scrbook}

%\usepackage[utf8]{inputenc} % unneeded in new systems
\usepackage[T1]{fontenc}
\usepackage{fbb}
\usepackage[condensed]{roboto}

\makeatletter
\renewcommand\seriesdefault{\mddefault\@empty}
\makeatother
\begin{document}

Test \textit{text} \sffamily Text \textit{text}

\end{document}

ここに画像の説明を入力してください

関連情報