[Tex/LaTex] fontspec search path in TEXMFHOME

fontsfontspecluatexopentypexetex

This is related to fontspec (xelatex) finding fonts by name, installed or in TEXMFHOME

When installing an OpenType font in TEXMFHOME (~/texmf) I see the following behaviour with fontspec of TeXLive 2013 on Debian Linux :

Both xelatex and lualatex see the font when it's in
~/texmf/fonts/opentype/emmentaler/emmentaler-16.otf
but not when it's in
~/texmf/fonts/opentype/lilyglyphs/emmentaler/emmentaler-16.otf.

Is that expected behaviour? I recall it should be
~/texmf/fonts/opentype/SUPPLIER/FONTFAMILY/FONT.otf.


Best Answer

This has just been discussed on the lualatex list last month:

Unfortunately, Kpathsea's subdirectory searching has an irremediable deficiency: If a directory D being searched for subdirectories contains plain files and symbolic links to other directories, but no true subdirectories, D will be considered a leaf directory, i.e., the symbolic links will not be followed. You can work around this problem by creating an empty dummy subdirectory in D. Then D will no longer be a leaf, and the symlinks will be followed.