I can't seem to get XeLaTeX to load OpenType fonts using \fontspec. Section 4.2 of the fontspec documentation says that I need to load OpenType fonts by filename rather than font name, but when I compile the following:
\documentclass[letterpaper]{scrartcl}
\usepackage{xltxtra}
\fontspec[Path = /home/[MYHOME]/.fonts/]{lmroman10-regular.otf}
\begin{document}
0123456789.
The quick brown fox jumped over the lazy dogs.
``firefly''
\end{document}
XeLaTeX generates the following errors:
[XeLaTeX] finished with exit code 1
./xelatexbase.tex:12:Undefined control sequence ... /home/[MYHOME]/.fonts/{lmroman10-regular.otf}
./xelatexbase.tex:12:Package xkeval Error: 'Path' undefined in families 'options' ... /home/[MYHOME]/.fonts/
I've verified that lmroman10-regular.otf is in /home/[MYHOME]/.fonts/. I must be doing something wrong with the Path argument, and I suspect it's something simple, but I don't see what.
I've posted the minimal example that generates this error, but documents using \fontspec with arguments that more closely track the examples in section 4 of the documentation do the same. The document compiles when I comment out \fontspec.
This on Ubuntu 10.10 with the latest full installation of TexLive from the repositories.