.png)
特定の場所で LobsterTwo フォントを使用するカスタム LaTeX 記事フォームがいくつかあります。この特定のフォントは、Mac でも Overleaf でも機能しないことに気付きました。(Homebrew から texlive 2022 を再インストールしましたが、同じ結果が表示されます。) pdflatex でドキュメントをコンパイルすると、エラー メッセージは表示されませんが、警告が表示され、別のフォントが置き換えられます。
\documentclass[10pt,a5paper]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\newcommand*{\LobsterTwo}{\fontfamily{LobsterTwo-LF}\selectfont}
\title{\LobsterTwo{\fontsize{80}{60}\selectfont Texte}}
%\author{{\LobsterTwo Alexander Deisting} }
\author{\fontfamily{LobsterTwo-LF}\selectfont{Alexander Deisting}}
\begin{document}
\maketitle
\end{document}
そしてここに警告があります:
LaTeX Font Warning: Font shape `T1/LobsterTwo-LF/bx/n' undefined
(Font) using `T1/cmr/m/n' instead on input line 13.
LaTeX Font Warning: Font shape `T1/LobsterTwo-LF/bx/n' in size <80> not availab
le
(Font) size <35.83> substituted on input line 13.
LaTeX Font Warning: Font shape `T1/LobsterTwo-LF/m/n' undefined
(Font) using `T1/cmr/m/n' instead on input line 13.
[1{/usr/local/Cellar/texlive/20220321_3/share/texmf-dist/fonts/map/pdftex/updma
p/pdftex.map}] (./fonttest.aux)
LaTeX Font Warning: Size substitutions with differences
(Font) up to 44.17pt have occurred.
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
フォントがマシンから全体的に欠落している可能性があるかどうかを確認しましたが、予想されるパスで見つかりました (以前の texlive 2020 のインストールに基づく)。例:/usr/local/Cellar/texlive/20220321_3/share/texmf-dist/fonts/map/dvips/lobster2/
存在します。残念ながら、グーグル検索を何度か行っても役に立たなかったので、ここで質問しました。(Overleaf にも同じ問題があります。現在、再テストするための古いバージョンのマシンがないので、以前は機能していたという私の言葉を信じるしかありません ;) ) 何かアイデアはありますか?
答え1
ラテックスファミリー名はLbstr-LFです
kpsewhich T1Lbstr-LF.fd
/usr/local/texlive/2022/texmf-dist/tex/latex/lobster2/T1Lbstr-LF.fd
\documentclass[10pt,a5paper]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\newcommand*{\LobsterTwo}{\fontfamily{Lbstr-LF}\selectfont}
\title{\LobsterTwo{\fontsize{80}{60}\selectfont Texte}}
%\author{{\LobsterTwo Alexander Deisting} }
\author{\fontfamily{Lbstr-LF}\selectfont{Alexander Deisting}}
\begin{document}
\maketitle
\end{document}