How to set fonts with multiple font files in LuaLatex

1.4k Views Asked by At

I am using ShareLatex as my online Latex editor. I want to use Times New Roman as my font but due to licence issues, ShareLatex can not distrubute this font. With the help of their documentation page I added the following lines, uploaded the fonts and now its working.

\setmainfont[SmallCapsFeatures={Renderer=Basic},
Ligatures={TeX, NoCommon, NoDiscretionary}]{times.ttf}

But the problem is, bold and italic texts are just regular since I have pointed times.ttf only. Then I added timesbd.ttf with a comma and tried this:

\setmainfont[SmallCapsFeatures={Renderer=Basic},
Ligatures={TeX, NoCommon, NoDiscretionary}]{times.ttf, timesbd.ttf}

Now the tex file can not be compiled, I couldn't succeed. How can I overcome the issue? Note that I am using LuaLatex as compiler.

0

There are 0 best solutions below