* luatex not loading opentype fonts
@ 2022-12-22 7:02 Luis Rivera
2022-12-22 14:45 ` Ken Brown
0 siblings, 1 reply; 2+ messages in thread
From: Luis Rivera @ 2022-12-22 7:02 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: luatex not loading opentype fonts
2022-12-22 7:02 luatex not loading opentype fonts Luis Rivera
@ 2022-12-22 14:45 ` Ken Brown
0 siblings, 0 replies; 2+ messages in thread
From: Ken Brown @ 2022-12-22 14:45 UTC (permalink / raw)
To: Luis Rivera, cygwin
On 12/22/2022 2:02 AM, Luis Rivera via Cygwin wrote:
> 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
I'm not a luatex user, but I find the error message puzzling. It appears to be
referring to a colon-separated list of directories as though it were a single
file or directory name. Is there something in your package that's preventing
the colon from being recognized as a separator? Are you perhaps mixing Cygwin
and Windows path conventions?
> 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 don't read the error message as referring to that directory alone.
Ken
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-22 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-22 7:02 luatex not loading opentype fonts Luis Rivera
2022-12-22 14:45 ` Ken Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).