Open kmaed opened 12 years ago
I had the same problem for a while and just found this issue here. I applied locally (instead of the fix above) to get around the problem (and then uninstalled the font in question).
Well, now I know this, but I agree that either way this shouldn't happen.
It was reported from some Chinese and Japanese users that there exist fonts without "names" field. For example, the entry for a valid font is written in otfl-names.lua as
But entries for some Chinese and Japanese fonts do not have "names" field (["names"]=nil). When these fonts exist on your system and you use luaotfload, the following error occurs:
Note that this error occurs even when you load valid fonts (in the above example, the loaded font is TeXGyreTermes).
I don't know whether the fonts without "names" field are valid or invalid. In my opinion, luaotfload should work without the error even if otfl-names.lua includes such invalid entries. Or another solution is that mkluatexfontdb simply ignores such invalid fonts. Hironori Kitagawa wrote a patch for the latter solution.
Of course, I know there is otfl-blacklist.cnf for problematic fonts. But this solution requires users to edit the blacklist file.