texlive 2022 中的字体似乎找不到(overleaf / mac os / mac os home brew 版本)

texlive 2022 中的字体似乎找不到(overleaf / mac os / mac os home brew 版本)

我有一些自定义 latex 文章表格,在某些地方使用 LobsterTwo 字体。我注意到这种特定字体在我的 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}

相关内容