khaledhosny / luaotfload

Moved to https://github.com/latex3/luaotfload
23 stars 15 forks source link

Invalid character leads to fatal error #57

Closed jpintar closed 9 years ago

jpintar commented 9 years ago

The following example

\input luaotfload.sty
\font\amor=file:AmorSerifTextPro.otf\amor
Sphinx of black quartz, judge my vow. 1234567890
\bye

fails to compile with LuaTeX, with the following error logged

luaotfload | db : Font names database loaded from C:/texlive/2014/texmf-var/luat
ex-cache/generic/names/luaotfload-names.luc(load luc: C:/texlive/2014/texmf-var/
luatex-cache/generic/fonts/otf/amorseriftextpro.luc) [1{c:/Users/USER/.texlive20
14/texmf-var/fonts/map/pdftex/updmap/pdftex.map}])<./AmorSerifTextPro.otf
!LuaTeX error (file ./AmorSerifTextPro.otf): Invalid character.
 ==> Fatal error occurred, no output PDF file produced!

However, since the following compiles in XeTeX without any issues

\font\amor="[AmorSerifTextPro.otf]"\amor
Sphinx of black quartz, judge my vow. 1234567890
\bye

I suspect the problem may have to do with luaotfload, rather the font itself (the problematic font is from the Storm Type Foundry).