My setup consists of a Windows 10 installation with the Windows Subsystem for Linux (WSL). Within WSL, I use Debian 10. I do not have any LaTeX distribution installed on Windows. Instead, I use the TeXlive distribution that comes in Debian 10's repositories. If it is of any relevance, I use Visual Studio Code with the LaTeX Workshop and Remote - WSL extensions.
For my slides, I use the Metropolis theme.
The theme is supposed to be used in conjuction with XeLaTeX, because it searches for the Fira Sans font family among the system fonts.
I already have the Fira Sans font family in C:\Windows\Fonts, and I know I could copy the ttf files into /usr/local/share/fonts/ within WSL (this is how I am rolling at the moment, and it works).
However, this duplicates files and doubles the required disk space.
Can I permanently instruct xelatex in WSL to use fonts in C:\Windows\Fonts?
If yes, how?
I know I can use the suggestions in this question to tell each individual document where to look for fonts.
Instead, I ask whether I can permanently change the font default search path for xelatex in WSL, so that it would search in /mnt/c/Windows/Fonts.
Side question: would the answer to my question be desirable in terms of performance? By design, WSL has worse IO performance when accessing files in /mnt/c compared to using files "locally" within WSL (i.e., /usr and ~).
Here is an account on the issue.
So maybe telling /usr/bin/xelatex to use fonts in /mnt/c/Windows/Fonts is a bad idea, because it would negatively impact compilation times in a significant and noticeable way.
C:\Windows\Fonts, right? Everytime I'd runxelatex, it would have to pick up the font from the Windows folder. So performance considerations do apply to this specific use-case. Am I understanding correctly? – borracciablu Apr 21 '20 at 15:05