On 22/02/2022 21:06, Peter Wilson wrote:
> I think that this might be of little help, but...
Every little helps.
> I'm on a Linux system and I have installed all sorts of fonts into
> `/usr/share/fonts` in subdirectories `cmap, Cmap, opentype, truetype,
> type`, X11`.
grep -nH /usr/share/fonts /etc/fonts/conf.avail/*
08-system.conf:4: <dir>/usr/share/fonts/opentype</dir>
08-system.conf:5: <dir>/usr/share/fonts/truetype</dir>
08-system.conf:6:<!-- <dir>/usr/share/fonts/type1</dir>-->
So if you run fc-cache, it will index and cache all the fonts in your
opentype, truetype, and type1 subdirectories. Your 08-system.conf or
equivalent would need to have an entry for cmap, Cmap, and X11 for any
of those fonts to be found, if I have understood the mechanism properly.
> I have completely forgotten how I used any of these in a LaTeX
> document although I did manage to use some of them. If only you had
> asked 10 years ago!
fc-list will then list all indexed fonts and show the fontname field,
which is what you can use in (eg) fontspec's \setmainfont command.
Peter