fontspec error (cannot resolve fontname of NewComputerModern)
Robert Alessi
alessi at robertalessi.net
Sat May 22 10:58:22 CEST 2021
On Sat, May 22, 2021 at 10:40:14AM +0200, Herbert Voss wrote:
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont{NewComputerModern10-Regular}
> \setsansfont{NewCMSans10-Book}
> \begin{document}
> Hello. \textsf{Hello.}
> \end{document}
>
> chooses Sans regular and book ....
This time from the PostScript name! Nevertheless, with:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{NewComputerModern10-Regular}
\setsansfont{NewCMSans10-Book}
\begin{document}
Hello. \textsf{Hello, \emph{hello}.}
\end{document}
One gets no italic or oblique sans serif. The only way is to specify
everything as in fspdefault.sty...
R.
>
> Herbert
More information about the tex-live
mailing list.