Consider the following MWE:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}
\textsc{smallcaps}
\end{document}
When I compile it using XeLaTeX, it produces a document in which the text 'smallcaps' is indeed set in small caps.
However, when I compile it using LuaLaTeX, I receive the error
LaTeX Font Warning: Font shape `TU/TimesNewRoman(0)/m/sc' undefined
(Font) using `TU/TimesNewRoman(0)/m/n' instead on input line 7.
and the text outputs without small caps.
If I use opentype-info.tex
with the font name Times New Roman
as in the MWE above, it outputs
script = 'latn'
...
features = ... 'smcp'
which seems to confirm that the font file (which is times.ttf
, an OpenType TrueType format font; the version of Times New Roman distributed with the latest update of Word for Mac) does support small caps.
Appending [Letters=SmallCaps]
or [RawFeature=+smcp]
to \setmainfont{Times New Roman}
, as has been suggested elsewhere, has no effect.
How can I use small caps in Times New Roman with LuaLaTeX?