I am sure that the same version of luaotfload files are used (from tl2013
tree). The \fontname returns bad string:

You may have to update Luaotfload, this issue was fixed months ago.
You can check which version is installed by running

   luaotfload-tool -V

The latest version on CTAN is v2.3b.

Thanks. After tlmgr update --all I have installed the 2.3b version on my computer and the \fontname returns fontfeatures.

But there is new problem with \fontname: When user writes the \font parameter in the "quotes" (because fontname can include a space), then these quotes are lost in \fontname output but in XeTeX they are kept. Example:

\ifx\luatexversion\undefined \else \input luaotfload.sty \fi
\font\hello="Luxi Mono Regular" at 12pt
\message{::: \fontname\hello}
\end

$ xetex test
...
::: "Luxi Mono Regular" at 12.0pt


$ luatex test
...
::: Luxi Mono Regular at 12.0pt


Is there some reason for this different behavior? This complicates the work of macro programmer: he/she needs to manage two versions of macros, the separating the fontname from scale parameter is more difficult etc.

My suggestion is to keep the XeTeX syntax here.

Best regrds

Petr Olsak

Reply via email to