[Tex/LaTex] Font is available, but not found by xeLaTeX

errorsfontspecxetex

I am experimenting with a CV template, which uses the Lato fonts. On my Linux system, they are in the /usr/share/fonts/TTF directory, and the command fc-list | grep -i lato shows them. And they have the same ownership and permissions as all other TTF fonts. But the command

\setmainfont[...]{Lato-Lig}

in xelatex, produces an error that the font cannot be found. I'm using TeXLive 2015. This should be a very simple matter, and in fact I've got to where I am now by following other helpful hints, but I still don't seem to make that font available to xelatex. Any advice would be welcome!

Best Answer

You're not giving people much to go on. This works for me (never used the font before):

% NOTE: TL2016, not TL2015 
\documentclass{article}
\usepackage{fontspec}% XeTeX
\setmainfont{Lato}[
  Path = /usr/local/texlive/2016/texmf-dist/fonts/truetype/public/lato/ ,
  Extension       =  .ttf ,
  UprightFont     =  Lato-Lig    ,
  ItalicFont      =  Lato-LigIta ,
  BoldFont        =  Lato-Bol    , % if using Lato-Lig for regular font; then maybe Lato-Reg would be better for the 'bold'....
  BoldItalicFont  =  Lato-BolIta ,
]
\usepackage{lipsum}

\newcommand\ftest{0123456789.!?<>()[]*\&\%\$\#@
\lipsum[1]}

\begin{document}

\ftest

{\itshape \ftest}

{\bfseries \ftest}

{\bfseries\itshape \ftest}

\end{document}