Liste des fontes disponibles (ter)
Comme je viens de l'indiquer en commentaire [dans ce fil](https://texnique.fr/osqa/questions/6848/listes-des-fontes-disponibles-bis), je cherche à obtenir un fichier d'exemple qui comporte toutes les polices installées sur mon ordi.
J'ai donc relancé le script suivant :
\documentclass[german]{article}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}
\usepackage{luacode}
\usepackage[margin=18mm]{geometry}
\parindent=0pt
\usepackage{longtable,makecell}
\renewcommand\arraystretch{2}
\usepackage{babel}
\begin{document}
\begin{luacode}
myfonts=dofile(config.luaotfload.paths.index_path_luc)
teststring = "Falsches Üben von Xylophonmusik quält jeden größeren Zwerg."
tex.print("\\begin{longtable}{lp{10cm}}\\hline")
for i,v in ipairs(myfonts.mappings) do
-- Stop early for testing purposes.
if i > 400 then break end
tex.print('\\makecell[l]{\\bfseries')
tex.print(-2, v.familyname)
tex.print('\\\\[-1ex] \\scriptsize')
tex.print(-2, v.fontname)
tex.print('} & \\LARGE\\fontspec{' .. v.fontname .. '}')
tex.print(-2, teststring)
tex.print('\\\\ \\hline')
end
tex.print("\\end{longtable}")
\end{luacode}
\end{document}
... lequel plante assez rapidement :
cannot open /home/user/.texlive2025/texmf-var/luatex-cache/generic/names/lua
otfload-names.luc: No such file or directory
stack traceback:
[C]: in function 'dofile'
[\directlua]:1: in main chunk.
\luacode@dbg@exec ...code@maybe@printdbg {#1} #1 }
l.33 \end{luacode}
Et pour cause : il n'y a pas de fichier `~/.texlive2025/texmf-var/luatex-cache/generic/names/lua/otfload-names.luc` !
$ ls ~/.texlive2025/texmf-var/luatex-cache/generic/names/lua/
luaotfload-lookup-cache.lua luaotfload-lookup-cache.luc luaotfload-names.lua.gz luaotfload-names.luc.gz test.tmp
Car j'imagine que c'est `config.luaotfload.paths.index_path_luc` qui correspond à `~/.texlive2025/texmf-var/luatex-cache/generic/names/lua/otfload-names.luc`. Quelqu'un saurait où ce fichier est passé ? Ou comment faire fonctionner ce script ?