I have a problem with XeTeX and extra fonts installed with TexLive 2020, which are required for XeTex and LuaTeX. I work on Ubuntu 2020.
The file name I am referring to is
texlive-fontconfig.conf. According to The TeX Live Guide—2020 or specifically the section 3.4.4 System font conﬁguration for XeTeX and LuaTeX, I should copy the file to
/etc/fonts/config.d/ (system-wide) or to
~/.fonts.conf (user-wide) and rename it as
09-texlive.conf. Then I should run
sudo fc-cache -fs or
fc-cache -f, respectively.
The syste-wide approach works Okey. I can compile a test file
opentype-info.tex using XeTeX and produce a pdf file.
When I try to cache the same fonts just for a user, XeTeX reports that fonts are not loadable. I tried to re-open a terminal and even restarted the system but XeTeX still complains about missing fonts when I compile the same test file. Is there anything else I should do to make those fonts visible for XeTeX (and possibly LuaTeX)?