latex3 / fontspec

Font selection in LaTeX for XeTeX and LuaTeX
http://latex3.github.io/fontspec/
LaTeX Project Public License v1.3c
276 stars 33 forks source link

XeTeX: can not use fontname and filename in one command #392

Open antonistsolomitis opened 4 years ago

antonistsolomitis commented 4 years ago

Description

can't use with xelatex a system-install font with a TeX instaled font. Say a command such as \setmainfont[ItalicFont=AFontInTeXTree.otf]{Times New Roman} fails. (It works with lualatex) This is necessary when providing complemented glyphs to a commercial installed font. For example, the fontsetup package provides fspMinionGreekSmallCaps.otf and fspPalatinoGreekSmallCaps.otf to complement the commercial MinionPro and LinotypePalatino. So the fsp fonts will be TeX-installed but typically MinionPro or LinotypePalatino are system-installed in, say, the Windows platform.

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Cambria}[ItalicFont=cmunit.otf]
\begin{document}
hello \textit{hello}
\end{document}

Further details