[luatex] the \fontname does not returns the font features

Petr Olsak petr at olsak.net
Mon Nov 18 16:57:10 CET 2013


Hello,

The version of luatex 0.76 reimplements the behavior of the \fontname 
primitive. The previous verison 0.70 and xetex are OK: \fontname returns 
the string which was the parameter of the \font primitive when font was 
loaded. The luatex version 0.76 isn't OK. Example:

\input luaotfload.sty
\font\tenrm="[lmroman10-regular]:script=latn;+tlig"
\message{::: \fontname\tenrm}
\end


This file is named fn.tex. Now, you can try:


$ luatex fn
This is LuaTeX, Version beta-0.76.0-2013052800 (rev 4627)
  restricted \write18 enabled.
(./fn.tex
...
::: /archiv/tl/tl2013/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf


On the other hand:


$ luatex fn
This is LuaTeX, Version beta-0.70.2-2012052410 (TeX Live 2012)
(./fn.tex ...
...
  ::: [lmroman10-regular]:script=latn;+tlig


or:


$ xetex
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)
  restricted \write18 enabled.
**\relax
entering extended mode
*\font\tenrm="[lmroman10-regular]:mapping=tex-text;script=latn"
*\message{::: \fontname\tenrm}
::: "[lmroman10-regular]:mapping=tex-text;script=latn"
*\end

I mean that the lost information about fontfeatures (when font was loaded) 
is bad idea. Macro programmer cannot use \fontname in order to read the 
features of the font. For example he want to reload the same font with the 
same features in the different size.

Best regards

Petr Olsak



More information about the luatex mailing list