fontspec error (cannot resolve fontname of NewComputerModern)

Herbert Voss Herbert.Voss at fu-berlin.de
Sat May 22 10:40:14 CEST 2021


Am 22.05.21 um 10:20 schrieb Robert Alessi:
> Thank you, agreed. This makes automatic selection of font shapes
> unavailable.  Besides, despite of:
>
> robert at localost:~$ otfinfo -i NewCMSans10-Book.otf
> Family:              NewComputerModern 10
> Subfamily:           Book
> Full name:           NewComputerModernSanss10-Book
> PostScript name:     NewCMSans10-Book
> Preferred family:    NewComputerModern Sans
> Preferred subfamily: 10 Book
> Mac font menu name:  NewComputerModern 10 Book
> Version:             Version 3.9
> Unique ID:           1.003;NewComputerModernSans10-Book
>
> \setsansfont{NewComputerModernSanss10-Book}
>
> does not work.


\documentclass{article}
\usepackage{fontspec}
\setmainfont{NewComputerModern10-Regular}
\setsansfont{NewCMSans10-Book}
\begin{document}
Hello. \textsf{Hello.}
\end{document}

chooses Sans regular and book ....

Herbert


More information about the tex-live mailing list.