我在 Font Book 中安装了一堆 Myriad Pro 变体,并使用 LuaLateX 将部分标题设置为此字体:
\newfontfamily{\headingfont}{Myriad Pro}
\renewcommand{\maketitlehooka}{\LARGE\headingfont}
\titleformat{\chapter}[display]
{\headingfont\huge\bfseries}{\chaptertitlename\ \thechapter}{0pt}{\Huge}
\titlespacing*{\chapter}
{0pt}{0pt}{30pt}
\titleformat*{\section}{\normalfont\LARGE\headingfont}
\titleformat*{\subsection}{\itshape\Large\headingfont}
\titleformat*{\subsubsection}{\normalsize\headingfont}
然而我注意到它正在使用浓缩italic 为斜体字体。
然后我注意到我没有安装常规斜体字体。于是我安装了它,但没有任何变化。
删除压缩斜体后,出现无法找到斜体字体的错误。这是怎么回事?
这是 fc-list 的输出(安装了压缩字体时)
./fc-list | grep "Myriad"
/Users/xx/Library/Fonts/MYRIADPRO-SEMIBOLD.OTF: Myriad Pro,Myriad Pro Light:style=Semibold,Bold
/Users/xx/Library/Fonts/MYRIADPRO-REGULAR.OTF: Myriad Pro:style=Regular
/Users/xx/Library/Fonts/MYRIADPRO-COND.OTF: Myriad Pro,Myriad Pro Cond:style=Condensed,Regular
/Users/xx/Library/Fonts/MYRIADPRO-BOLDCONDIT.OTF: Myriad Pro,Myriad Pro Cond:style=Bold Condensed Italic,Bold Italic
/Users/xx/Library/Fonts/MYRIADPRO-BOLD.OTF: Myriad Pro:style=Bold
/Users/xx/Library/Fonts/MYRIADPRO-SEMIBOLDIT.OTF: Myriad Pro,Myriad Pro Light:style=Semibold Italic,Bold Italic
/Users/xx/Library/Fonts/MYRIADPRO-CONDIT.OTF: Myriad Pro,Myriad Pro Cond:style=Condensed Italic,Italic
/Users/xx/Library/Fonts/MYRIADPRO-BOLDIT.OTF: Myriad Pro:style=Bold Italic
/Users/xx/Library/Fonts/MYRIADPRO-BOLDCOND.OTF: Myriad Pro,Myriad Pro Cond:style=Bold Condensed,Bold
/Users/xx/Library/Fonts/MYRIADPRO-IT.otf: Myriad Pro:style=Italic
答案1
按照@cfr 的说法更新lualatex
字体信息就修复了这个问题。
打开终端并切换到 texlive bin 目录:
cd /usr/local/texlive/2014/bin/x86_64-darwin
运行字体更新
luaotfload-tool -u