This repository has been archived by the owner on Sep 27, 2019. It is now read-only.
forked from khaledhosny/luaotfload
-
Notifications
You must be signed in to change notification settings - Fork 8
luaotfload does not follow symlinks #325
Comments
···<date: 2016-04-04, Monday>···<from: Stefan Haller>··· Thanks for reporting!
Scanning works here:
What does Best, |
I’ve just given this another go because I wasn’t sure: There’s no bug.
Consequently, Luaotfload correctly finds fonts if Please reopen if you have further data. |
phi-gamma
added a commit
to phi-gamma/luaotfload
that referenced
this issue
Jun 8, 2016
Addresses lualatex#359 and lualatex#325 To avoid duplicate entries, paths have to be resolved before collecting them. This necessitates loop detection of some sort, currently implemented naively as a flat table containing the directories already traversed.
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If the
~/.fonts
directory is symlinked to a different directory, luaotfload fails to index fonts in this location. Only scanning is affected. Once the fonts are included in the luaoftload font database everthing works as expected.In file
luaotfload-database.lua
the functionsfind_files_indeed
andfind_files
use the functionlfsisdir
and thus simply skip symlinks. Something likelfslisdir
(in the sense ofstat
vslstat
) should have been used.The text was updated successfully, but these errors were encountered: