使用 fontspec 在 TeX Live 2012 中載入 URW Garamond

使用 fontspec 在 TeX Live 2012 中載入 URW Garamond

我可以如下使用 URW Garamond:

\documentclass[12pt]{article}

\usepackage{parskip}
\usepackage[urw-garamond]{mathdesign}

\begin{document}

\thispagestyle{empty}

\textbf{Bold text} \\
Normal text

\end{document}

但我只想使用 URW Garamond 來顯示粗體文字。我想這樣做是因為 EB Garamond 目前沒有好的粗體字體,而且我更喜歡 EB Garamond 的整體外觀。所以,最終,我想像下面這樣呼叫字體:

\documentclass[12pt]{article}

\usepackage{parskip}
\usepackage{fontspec}
\setmainfont[Numbers=Lining,BoldFont={TeX Gyre Pagella Bold}]{EB Garamond}

\begin{document}

\thispagestyle{empty}

\textbf{Bold text} \\
Normal text

\end{document}

使用 TeX Gyre Pagella Bold 作為範例,因為我在 TeX Live 2012 中找不到 URW Garamond 的名稱。 TeXLivegetnonfreefonts -l表明已安裝“GaramondNo8 (URW)”,我可以在 mathdesign 套件中使用該字體。但要找到 fontspec 的名字是很困難的。我怎麼知道它的名字是什麼,或者,如果這不是問題,我怎麼能用 fontspec 載入它?

如果有什麼不同的話,我透過以下方式安裝了 EB GaramondCTAN包

答案1

「EB Garamond」是一種 OpenType 字體,但可用於具有getnonfreefonts腳本(可在 Windows 中執行)的 TeX Live 的「URW Garamond」是 Type1 格式。您fontspec只能使用此字型的 True-/OpenType 版本。您可以從您最喜歡的來源下載 Truetype 格式的整個 URW 字型集合,請參閱。https://www.google.com/search?q=%22urwfonts-8.71.tar.bz2%22&newwindow=1 (請注意,從 GhostPCL 連結的資源已死:據我記得,它嘗試連結到 CTAN 鏡像,但相應的目錄很久以前就被刪除了)或僅適用於 URW Garamond No.8 的特殊版本https://github.com/rbrito/urw-garamond/tree/master/orig/ttf

同時,「EB Garamond」的新版本發布了。也許現在有更好的粗體版本。

相關內容