This repository has been archived by the owner on Aug 17, 2019. It is now read-only.
forked from lualatex/luaotfload
-
Notifications
You must be signed in to change notification settings - Fork 0
luaotfload: reading database #6
Comments
Thank you for reporting!
2017-02-05 (Sunday), [email protected] (hvoss49):
```
[...]
(/usr/local/texlive/2016/texmf-dist/tex/luatex/ctablestack/ctablestack.sty)))(l
oad luc: /usr/local/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmmon
oltcond10-regular.luc) (./12-04-19.aux)[\directlua]:7: bad argument #1 to 'ipai
rs' (table expected, got nil)
stack traceback:
[C]: in function 'ipairs'
[\directlua]:7: in function 'printFontDemo'
[\directlua]:1: in main chunk.
l.35 \directlua{printFontDemo("LatinModern")}
?
```
I can fix it with the following. Is it a problem with my code or
the database which has an empty entry?
I’m curious about that empty entry. Is it literally empty or just
missing the fields you access? Does the empty one get created if
you force reindexing?
|
The familyname of the font is nil:
the fonts from luaotfload-names are:
I can delete the vrinda.ttf and epkyouka.ttf and then get the same problem with another font.
The PostScript name is a bit curious ... |
I had a lot of such fonts which gave nil in the list. After deleting all it works. That were all ttf fonts. Let me know if you need one of the fonts for testing. |
2017-02-06 (Monday), [email protected] (hvoss49):
I had a lot of such fonts which gave nil in the list. After deleting all it works. That were all ttf fonts. Let me know if you need one of the fonts for testing.
This should print a list of all of them:
$ luaotfload-tool --list="*" --fields="fontname,familyname" | cat -n | column -t | grep '<none>'
Honestly I haven’t a single speciment in my test collection that
exhibits this behavior. Since there are two fallbacks for that
field in place, I suspect either a parsing error or a completely
borked names table.
For the normal lookup this matters little. The files are simply
ignored when building the families table so they can only be
matched by name (or filename of course). As far as Luaotfload is
concerned, this appears to work as intended.
But since those files could be interesting, I think it’d be best
if you email me an example file.
Best,
Philipp
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The following example worked last year:
now I get with lualatex 0.95 and up-to-date TL2016
I can fix it with the following. Is it a problem with my code or the database which has an empty entry?
The text was updated successfully, but these errors were encountered: