dnl-blkv / mcdowell-cv

A Nice-looking CV template made into LaTeX
https://www.careercup.com/resume
MIT License
2.03k stars 743 forks source link

No Times New Roman font #12

Open reikdas opened 5 years ago

reikdas commented 5 years ago

I get the following error logs -

pratyush@debian:~/Downloads/mcdowell-cv-master$ lualatex McDowell_CV_Template.tex
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian) 
 restricted system commands enabled.
(./McDowell_CV_Template.tex
LaTeX2e <2017/01/01> patch level 3
(using write cache: /home/pratyush/.texlive2016/texmf-var/luatex-cache/generic)
(using read cache: /var/lib/texmf/luatex-cache/generic /home/pratyush/.texlive2
016/texmf-var/luatex-cache/generic)
luaotfload | main : initialization completed in 0.117 seconds
Babel <3.9r> and hyphenation patterns for 1 language(s) loaded.
(./mcdowellcv.cls
Document Class: mcdowellcv 2017/06/18 v1.2.0 McDowell CV class
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo(compiling luc: /var/li
b/texmf/luatex-cache/generic/fonts/otl/lmroman10-regular.luc)(load luc: /home/p
ratyush/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular
.luc))) (/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.cfg)(compiling luc: 
/var/lib/texmf/luatex-cache/generic/fonts/otl/lmroman10-bold.luc)(load luc: /ho
me/pratyush/.texlive2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-bol
d.luc)(compiling luc: /var/lib/texmf/luatex-cache/generic/fonts/otl/lmroman10-i
talic.luc)(load luc: /home/pratyush/.texlive2016/texmf-var/luatex-cache/generic
/fonts/otl/lmroman10-italic.luc)))
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: "Font TimesNewRoman not found.".
luaotfload | resolve : sequence of 3 lookups yielded nothing appropriate.table={
 ["features"]={
  ["normal"]={
   ["ccmp"]=true,
   ["clig"]=true,
   ["itlc"]=true,
   ["kern"]=true,
   ["language"]="dflt",
   ["liga"]=true,
   ["locl"]=true,
   ["mark"]=true,
   ["mkmk"]=true,
   ["mode"]="node",
   ["rlig"]=true,
   ["script"]="dflt",
  },
 },
 ["forced"]="afm",
 ["forcedname"]="TimesNewRoman.afm",
 ["hash"]="timesnewroman @ normal:ccmp=true+clig=true+itlc=true+kern=true+language=dflt+liga=true+locl=true+mark=true+mkmk=true+mode=node+rlig=true+script=dflt",
 ["lookup"]="anon",
 ["method"]="",
 ["name"]="TimesNewRoman",
 ["resolved"]="",
 ["size"]=717619,
 ["specification"]="TimesNewRoman",
 ["sub"]=false,
}
table={
 ["features"]={
  ["normal"]={
   ["ccmp"]=true,
   ["clig"]=true,
   ["itlc"]=true,
   ["kern"]=true,
   ["language"]="dflt",
   ["liga"]=true,
   ["locl"]=true,
   ["mark"]=true,
   ["mkmk"]=true,
   ["mode"]="node",
   ["rlig"]=true,
   ["script"]="dflt",
  },
 },
 ["forced"]="afm",
 ["forcedname"]="TimesNewRoman.afm",
 ["hash"]="timesnewroman @ normal:ccmp=true+clig=true+itlc=true+kern=true+language=dflt+liga=true+locl=true+mark=true+mkmk=true+mode=node+rlig=true+script=dflt",
 ["lookup"]="anon",
 ["method"]="",
 ["name"]="TimesNewRoman",
 ["resolved"]="",
 ["size"]=717619,
 ["specification"]="TimesNewRoman",
 ["sub"]=false,
}

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "TimesNewRoman" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

l.43 ..., NoCommon, NoDiscretionary}]{\mainfontface}

? 
burglarhobbit commented 5 years ago

Try this: sudo apt-get install ttf-mscorefonts-installer

azzamsa commented 5 years ago

In GNU/Linux, you can use calibri compatible font, carlito. See https://github.com/dnl-blkv/mcdowell-cv/issues/4#issuecomment-480132905