
我有一些自訂乳膠文章表單,在某些地方使用 LobsterTwo 字體。我注意到這種特殊字體在我的 Mac 上和背面都不起作用。 (我從 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}