
嘗試使用 Helvetica Condensed Roman 沒問題,但undefined font shape OT1/phv/mc/sl
在 MacOS 10.15 (Catalina) 上使用 TeXLive 2020 時,Helvetica Condensed Oblique 會出現嚴重錯誤。這在 TeXLive 2017 上運行良好。
在此 MWE 上運行pdflatex
(版本:3.14159265-2.6-1.40.21 (TeX Live 2020))會出現錯誤「這不起作用」:
\documentclass{article}
\begin{document}
\fontfamily{phv}\fontseries{mc}\selectfont
This works,
\textit{this doesn't work}
\end{document}
在運行 MWE 時,我還看到四個警告對於文件/usr/local/texlive/2020/texmf-dist/tex/latex/psnfss/ot1phv.fd
:
LaTeX Warning: Font shape declaration has incorrect series value `mc'.
It should not contain an `m'! Please correct it.
Found on input line 21.
這些警告似乎與錯誤明顯相關,雖然該.fd
文件似乎確實有\DeclareFontShape{OT1}{phv}{mc}{sl}{<-> \Hv@@scale phvro7tn}{}
,但我的 TeX-font-fu 不夠強大,無法弄清楚這裡發生了什麼。
任何見解都值得讚賞,包括切換到類似的字體、修復/替換.fd
文件等等。
更新:@UlrikeFischer 有正確的建議。我很驚訝它竟然有效,因為我已經下載了適用於TeXLive 2020 的MacOS 特定MacTeX (.pkg) 安裝程式。 ,該安裝程式附帶與更新的.fd
檔案。如果您使用 MacTeX 在 MacOS 上安裝 TeXLive,請注意!