[Tex/LaTex] LaTeX Fonts with fontspec-package

filesystem-accessfontsfontspecluatextexmf-local

Today i figured out how to use system-installed-fonts with the fontspec-package and LuaLaTeX. But i can't figure out how to use fonts, that are installed in my texmf-tree!

The fontspec-Manual says (p. 10), that LuaLaTeX will see fonts installed in my texmf-tree and i can enter the name via a human readable-string (eg. Latin Modern Roman) or the filename (eg. ec-lmr10.tmf).

Even though i have confirmed that this file (and hence the font) is installed on my system in my texmf-tree, i can't get it to compile! I always get a

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

l.13 \setmainfont{ec-lmr10.tfm}

?

Am i getting something wrong?
How can i use LaTeX-fonts with fontspec and LuaLaTeX?

Best Answer

\documentclass{article}
\begin{document}
foo
\end{document}

running with current lualatex from TeXLive creates a document with the icluded Latin Modern:

$ pdffonts zzz2.pdf 
name                      type              encoding         emb sub uni object ID
------------------------- ----------------- ---------------- --- --- --- --------- 
NAGORB+LMRoman10-Regular  CID Type 0C       Identity-H       yes yes yes      4  0