2

In Times new roman font? the sole answer (and with many upvotes) states "Compile with XeLaTeX or LuaLaTeX, and use: \usepackage{fontspec} \setmainfont{Times New Roman} This is true Times New Roman, via modern TeX engines."

A while back, if someone wanted to approximate the real Times New Roman font, there was \usepackage{times} (which has since been deprecated); now, \usepackage{mathptmx} often seems to be recommended as a substitute, but not without some lamenting; see, for example, the OP's commentary in the above post: ``But everything I've tried makes ugly pseudo-times new roman font in comparison. What I've tried based on the research I've done so far;''

There are others, such as txfonts and newtx, for example.

But \setmainfont{Times New Roman} does seem to do a very good job. Consider:

\documentclass[12pt]{article}
\usepackage{fontspec,lipsum}
\setmainfont{Times New Roman}
\begin{document}
\lipsum[1]
\end{document}

produces:

enter image description here

QUESTION: Is Leo Liu, who posted the only answer in the above post, correct; that is, does invoking Times New Roman with fontspec give you (close to at least) the real Times New Roman font? Are there any drawbacks to it aside from not having small caps? May it be used free of charge for commercial projects?

Thank you.

1
  • note that the OP in that question was comparing times/tnr clones with a completely different font believed to be (but not in fact) tnr. so the lamentation is not necessarily relevant if you actually do whant times/tnr. in any case, you have to say what you mean by the original font here. the one present in windows systems is not, afaik, much like the original. (in fact, I seem to remember the Times on macs is closer to the original font than the TNR on windows. or have I got those the wrong way round?)
    – cfr
    Commented Aug 6 at 23:48

2 Answers 2

6

It will use the font installed as Times New Roman in your system, that is, the same font as a word processor or browser would use when requested for a font of that name. (Note if you don't have Times New Roman installed, eg you have Times Roman or a clone such as nimbus) then Times New Roman may still work via aliases or may not depending on the system. Note that Times New Roman (an old version) is available on non windows platforms such as linux via the microsoft corefonts package.

As for small caps I would expect that they work, although it depends which font you have installed on your system that is, or is aliased to, Times New Roman.

On this Windows box using cygwin xelatex in texlive 2024 I get

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Times New Roman}

\begin{document}

One Two Three \textsc{Four Five Six}

\end{document}

enter image description here

and the font used is:

pdffonts file.pdf
name                        type              encoding         emb sub uni object ID
--------------------------- ----------------- ---------------- --- --- --- ---------
TJGRCK+TimesNewRomanPSMT    CID TrueType      Identity-H       yes yes yes      4  0

Older packages such as mathptmx that you mention are referencing 8 bit legacy tex fonts for pdftex, but you are specifying system fonts for luatex or xelatex using the fontspec package.

Note however that you have just specified Times New Roman as the main serif font, fontspec will guess italic and bold fonts based on this, but sans serif, monospace and math will all still be based on latin modern, so (especially math) will look horrible.

If instead you use \usepackage{newtx} The main serif font will be based on the URW Times Roman clone (as used for Times font in ghostscript) but in addition suitable matching sans serif and math will be set up.

5
  • this really isn't true on other platforms. if I try to compile your code with luatex, for example, I just get errors. if, on the other hand, a document requests tnr in a word processor, I will get a font. luaotfload doesn't use system-configured aliases, as far as I can tell, so the fact that I have aliases configured for tnr doesn't enable the code to compile. if there's a way to get it to use aliases, it certainly isn't enabled by default.
    – cfr
    Commented Aug 7 at 0:08
  • @cfr hmm is that true even if you use xelatex? I'd have expected that fontconfig would use the same aliases, but I'll add a note. Commented Aug 7 at 7:57
  • er, I'm not sure. in general, fontconfig always finds a match, but it doesn't stop xetex reporting errors. unlike luatex, xetex finds tnr on my machine, so I can't test what it would do if it didn't withoiut messing around with fontconfig, which I'm loathe to do on the grounds that it's like wrestling shadows. (it doesn't find small-caps, but I think those don't exist to be found.)
    – cfr
    Commented Aug 7 at 13:43
  • @cfr yes, I think the real answer "probably not well expressed in my answer" is that if you use fontspec and specify Times New Roman you are asking for exactly that font and not a clone or an approximation, so if you have it you should get the "real" font (or you might say Microsoft's approximation to Times Roman:-) what happens if you ask for that and don't actually have it, is "complicated" Commented Aug 7 at 13:50
  • in my limited, but not limited enough, experience anything involving fontconfig is not just "complicated" but (almost?) unintelligible. one of the nice things about traditional tex fonts is that configuration is actually straightforward in comparison.
    – cfr
    Commented Aug 7 at 13:57
4

If you set the font to Times New Roman, you will (if the MS Core fonts for the Web, Microsoft Windows, or Microsoft Office are installed) get the same font that any word processor or browser would use if you request Times New Roman. On some Linux systems, you would need to install the version that Microsoft released gratis in the ’90s. Also, some Linux boxes need a bit of extra set-up for XeTeX to see fonts in both the system and TeX directories.

There is only one difference: Word and most other software follows PostScript’s definition of a “point.” TeX calls this a “big point” instead, or bp. Therefore, if you set the font size to 10pt, you will get slightly smaller text than expected, and to get the same size as if you’d selected 10-point Times New Roman in Word, you would instead use something like the fontsize=10bp option of Koma-Script.

If you have the correct copyrighted font files on your box, you might be able to use them in text mode with PDFTeX through the winfonts package, although last I checked, this was obsolete. Otherwise, any version of Times should be nearly identical. The newtx package is the most full-featured and up-to-date of these for legacy 8-bit TeX.

3
  • @cfr Linux distros do have a package to install the MS Core Fonts for the Web, whose license allowed redistribution of the ’96 version of the fonts. On Debian and Ubuntu, the package is ttf-mscorefonts-installer, in contrib.
    – Davislor
    Commented Aug 7 at 3:15
  • 1
    @cfr I’ve changed that paragraph to be more precise.
    – Davislor
    Commented Aug 7 at 4:43
  • thanks ... tidied up a bit.
    – cfr
    Commented Aug 7 at 8:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .