CMU bold small capitals work for me with \usepackage[T1]{fontenc} but not with \usepackage{fontspec}. Is there a way to get a separate CMU font that only has small capitals? When I buy fonts they come with separate files for small capitals and that works fine with fontspec.
Edit
\documentclass{report}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman 10 Regular}[
BoldFeatures = {SmallCapsFont = {CMU Serif Bold}},
SmallCapsFont = Latin Modern Roman Caps]
\begin{document}
Roman. \textbf{Bold.} \textsc{Small capitals.}
\textbf{\textsc{Bold small capitals.}}
\end{document}


fontspecpackage. – Mico Mar 14 '21 at 05:55fc-cache command not found. So at this point it still doesn't work. – simple jack Mar 14 '21 at 06:29\setmainfont{cmun}option which searches by file name? (fc-cacheis a Linux command, so presumably you aren't running Linux). – David Purton Mar 14 '21 at 06:56\setmainfont{cmun}doesn't work.font not found– simple jack Mar 14 '21 at 07:01\setmainfont{CMU Serif}and remove all your other font commands except for\usepackage{fontspec}. – David Purton Mar 14 '21 at 07:06