[Tex/LaTex] How to use Times Roman (Nimbus Roman) with fontspec under Linux and LuaLaTeX

fontspeclinuxluatex

Times Roman under Linux is usually Nimbus Roman. If I use the times package, Nimbus Roman will be embedded successfully, as a Type 1 font.

Now I want to use the fontspec package to load it. This a minimal example.

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Times Roman}

\begin{document}
test
\end{document}

fontspec says it cannot find the font TimesRoman. I have also tried

\setmainfont{Nimbus Roman}
\setmainfont{Nimbus Roman No 9 L}
\setmainfont{NimbusRomNo9L}
\setmainfont{NimbusRomNo9L-Regu}

but none of them can load it successfully.

Any hint will be greatly appreciated.

Best Answer

You can use the TeX Gyre Termes font, which is an extended version of Nimbus Roman No9 L available as Type 1 and OpenType. It is already installed in TeX Live, so using it with LuaLaTeX should be as simple as

\documentclass{article}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}

\begin{document}
The quick brown fox jumps over the sleazy dog
\end{document}

TeX Gyre Termes:

Font example of TeX Gyre Termes

Nimbus Roman No9 L:

Font example of Nimbus Roman No9 L

(The font samples are from the LaTeX Font Catalogue.)

Related Question