From: Ken Brown <kbrown@cornell.edu>
To: Luis Rivera <jlrn77@gmail.com>, cygwin@cygwin.com
Subject: Re: luatex not loading opentype fonts
Date: Thu, 22 Dec 2022 09:45:41 -0500 [thread overview]
Message-ID: <336d27c2-1798-d583-5f0d-2f2b2cbf881e@cornell.edu> (raw)
In-Reply-To: <CAOEhWT097htNvmqxSysg9Wt_HVsETVxe-Fu9RJvjpNkVFkLXww@mail.gmail.com>
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
prev parent reply other threads:[~2022-12-22 14:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-22 7:02 Luis Rivera
2022-12-22 14:45 ` Ken Brown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=336d27c2-1798-d583-5f0d-2f2b2cbf881e@cornell.edu \
--to=kbrown@cornell.edu \
--cc=cygwin@cygwin.com \
--cc=jlrn77@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).