latex3 / luaotfload

OpenType font loader for LuaTeX
Other
56 stars 6 forks source link

error if a feature has not value #128

Open u-fischer opened 4 years ago

u-fischer commented 4 years ago
\documentclass{article}

\begin{document}
\font\test={file:texgyreheros-regular.otf:language=;} \test

abc
\end{document}

fails with

)...lltexmf/tex/latex-dev/luaotfload/luaotfload-features.lua:261: bad argument #
1 to 'lower' (string expected, got boolean).
<to be read again> 
\test 
l.304 ...:texgyreheros-regular.otf:language=;} \test

(The missing value is due a fontspec bug, see https://github.com/wspr/fontspec/issues/403, but imho luaotfload should catch it if possible.)

zauguin commented 4 years ago

I think there are three parts here: