fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

XeTeX: can not use fontname and filename in one command

Open antonistsolomitis opened this issue 6 years ago • 0 comments
trafficstars

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

  • [X] Relevant for XeTeX
  • [ ] Relevant for LuaTeX
  • [ ] Issue tracker has been searched for similar issues?
  • [ ] Links to <tex.stackexchange.com> discussion if appropriate

Minimal example demonstrating the issue

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

Further details

antonistsolomitis avatar Nov 25 '19 13:11 antonistsolomitis