Closed dbitouze closed 3 years ago
@dbitouze Given that your minimal example contains neither any text in small caps nor uses Latin Modern in the first place, I highly doubt that is gives the warnings you showed.
the example actually errors as .otf
is added twice.
Outch! Sorry, I should have mixed some MCEs... and I cannot find the one relevant for this issue. I've tried to rebuild a MCE that gives the mentioned warning:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}[
SmallCapsFont=Latin Modern Roman Caps,
SmallCapsFeatures = { Letters=SmallCaps},
]
\begin{document}
\textsc{Foo}
\end{document}
but I guess it just says what it says :$
While we're at it, why 4 occurrences of this warning?
While we're at it, why 4 occurrences of this warning?
The font is loaded in four variants: regular, bold, italic, bold italic.
\documentclass{article} \usepackage{fontspec} \setmainfont{Latin Modern Roman}[ SmallCapsFont=Latin Modern Roman Caps, SmallCapsFeatures = { Letters=SmallCaps}, ] \begin{document} \textsc{Foo} \end{document}
If you explicitly request Letters=SmallCaps
for a font where this doesn't have any effect the warning does seem useful.
Description
Why and how to get rid of a (AFAICS) useless warning about OpenType feature 'Letters=SmallCaps' not available for font 'LatinModernRomanCaps' with script 'CustomDefault' and language 'Default'?
Check/indicate
Minimal example demonstrating the issue
File List:
Further details
The compilation of the previous MCE gives the following warnings:
but the text is, as expected, in small caps: