luatex not loading opentype fonts

Luis Rivera jlrn77@gmail.com
Thu Dec 22 07:02:19 GMT 2022


While developing a package for LuaTeX with the texlive-collection, I
noticed that LuaTeX could not access the directories for OpenType
fonts;

```
$ luatex sloth
This is LuaTeX, Version 1.15.0 (TeX Live 2022/Cygwin)
 restricted system commands enabled.
(./sloth.tex (/home/root/.local/share/texmf/tex/luatex/luatex85.sty)
(/usr/share/texmf-dist/tex/generic/yax/yax.tex
(/usr/share/texmf-dist/tex/generic/texapi/texapi.tex))
(/usr/share/texmf-dist/tex/generic/gates/gates.tex
(/usr/share/texmf-dist/tex/generic/texapi/texapi.tex)) (./lua.ptx) (./files.ptx
) (./fonts.ptx./fonts.ptxlua:285: cannot open .:/home/root/.config/texmf/fonts/
opentype/:/home/root/.cache/texmf/fonts/opentype/:/home/root/.local/share/texmf
/fonts/opentype/:/usr/share/texmf-site/fonts/opentype/:/etc/texmf/fonts/opentyp
e/:/var/lib/texmf/fonts/opentype/:/usr/share/texmf-dist/fonts/opentype/:/home/r
oot/.config/texmf/fonts/truetype/:/home/root/.cache/texmf/fonts/truetype/:/home
/root/.local/share/texmf/fonts/truetype/:/usr/share/texmf-site/fonts/truetype/:
/etc/texmf/fonts/truetype/:/var/lib/texmf/fonts/truetype/:/usr/share/texmf-dist
/fonts/truetype/:/cygdrive/c/windows/fonts/: No such file or directory
stack traceback:
        [C]: in function 'lfs.dir'
        ./fonts.ptxlua:285: in local 'check_fonts'
        ./fonts.ptxlua:366: in main chunk
        [C]: in function 'dofile'
        [\directlua]:1: in main chunk.
\inputluafile ...ua {dofile(kpse.find_file("#1"))}

l.1 \inputluafile fonts.ptxlua

?

```

Which is weird, because my program works correctly in the windows
version of TeXLive, and `ls /cygdrive/c/windows/fonts` returns the
directory listing correctly.

I fear I have spotted a bug.

Luis Rivera


More information about the Cygwin mailing list