
文件
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{MinionPro}
\setsansfont[Ligatures=TeX]{CronosPro}
\begin{document}
MinionPro: \textbf{bold}
\textsf{CronosPro: \textbf{{bold}}}
\end{document}
透過 TeXLive-2015 中的 lualatex 運行會給出預期的 PDF 檔案;使用 TeXLive-2016 中的 lualatex,MinionPro 粗體會如預期顯示,但對於 CronosPro,則使用 BoldItalics。如果有好心人願意研究這個奇怪的變化,我很樂意提供日誌。
答案1
我嘗試了您的範例,但沒有找到您描述的問題。我正在使用庫存 TeXLive 2016,今天剛更新。字體是 Adobe Font Folio 11 的版本(但我認為字體的版本不是問題)。雖然我確實有補丁https://github.com/wspr/fontspec/pull/231應用於fontspec
。我不確定這是否是問題所在。
另一個可能的原因是您需要強制重建字體名稱資料庫,
luaotftools --update -f
除此之外,我想不出它選擇錯誤字體的任何原因
答案2
TL 2016 中與 luatex 相關的事情發生了很多變化:首先當然是許多原語發生了變化,而且字體加載器已經用 lua 重寫,而不是使用 fontforge 庫。雖然這原則上是一個好主意,但肯定存在許多潛伏的錯誤,並且要求您將它們報告給字體載入器的錯誤追蹤器:https://github.com/lualatex/luaotfload/issues/
答案3
只要 LuaTeX 有錯誤,請按照本手冊和支援安裝 Adobe Cronos Pro for pdftex:https://github.com/sebschub/FontPro
這裡有一些關於如何讓它一切正常運作的討論:Myriad Pro 壓縮未定義