निरंजन
I am using the [`newcm`](https://ctan.org/pkg/newcm) font. The font provider has supplied some files with the `.fontspec` extension which can be seen [here](https://www.ctan.org/tex-archive/fonts/newcomputermodern/tex). They have some predefined settings with which all the numbers from small caps text are printed in the old style. I don't want that, but I am not able to override those settings. This is the minimal non working example:
```
% arara: lualatex
% arara: lualatex
% arara: clean: { extensions: [ log,aux ] }
\documentclass{article}
\usepackage{fontspec}
\setmainfont[%
ItalicFont = {NewCM10-Italic.otf},%
BoldFont = {NewCM10-Bold.otf},%
BoldItalicFont = {NewCM10-BoldItalic.otf},%
SmallCapsFeatures = {%
% Courtesy: https://tex.stackexchange.com/a/107246
Numbers = {Lining,Monospaced},%
Letters = {SmallCaps}%
}%
]{NewCM10-Regular.otf}
\begin{document}
\textbf{Lorem ipsum}% Works
\textit{Lorem ipsum}% Works
\textit{\textbf{Lorem ipsum}}% Works
\textsc{123}% Doesn't work
\end{document}
```
Can someone help?
Top Answer
Skillmon
You can use the `IgnoreFontspecFile` option. Note that you'll need to pass in any font options those files set and that you want by hand.
```
% arara: lualatex
% arara: lualatex
% arara: clean: { extensions: [ log,aux ] }
\documentclass{article}
\usepackage{fontspec}
\setmainfont{NewCM10-Regular.otf}[%
IgnoreFontspecFile,
ItalicFont = {NewCM10-Italic.otf},%
BoldFont = {NewCM10-Bold.otf},%
BoldItalicFont = {NewCM10-BoldItalic.otf},%
SmallCapsFeatures = {%
% Courtesy: https://tex.stackexchange.com/a/107246
Numbers = {Lining,Monospaced},%
Letters = {SmallCaps}%
}%
]
\begin{document}
\textbf{Lorem ipsum}% Works
\textit{Lorem ipsum}% Works
\textit{\textbf{Lorem ipsum}}% Works
\textsc{123}% Doesn't work
\end{document}
```