Hello, for sake of completeness, the pattern "${(u)$(fc-list ':' file 2> /dev/null):h}" resolvs to this directories on my system:
# p ${(u)$(fc-list ':' file 2> /dev/null):h} /usr/share/fonts/truetype/noto /usr/share/texmf/fonts/opentype/public/tex-gyre /usr/share/fonts/truetype/liberation /usr/share/fonts/opentype/stix /usr/share/texmf/fonts/opentype/public/lm /usr/share/fonts/truetype/ttf-dejavu /usr/share/texmf/fonts/opentype/public/tex-gyre-math /usr/share/fonts/truetype/freefont /usr/share/fonts/X11/Type1 /usr/share/fonts/opentype/mathjax /usr/share/fonts/truetype/dejavu /usr/share/fonts/truetype/lyx /usr/share/fonts/type1/gsfonts /usr/share/fonts/truetype/unifont /usr/share/fonts/truetype/liberation2 /usr/share/fonts/type1/texlive-fonts-recommended /usr/share/fonts/truetype/gentium-basic /usr/share/fonts/opentype/linux-libertine /usr/share/fonts/truetype/crosextra /usr/share/fonts/truetype/inconsolata /usr/share/fonts/truetype/lato /usr/share/fonts/truetype/oxygen /usr/share/fonts/truetype/droid /usr/share/fonts/truetype/hack /usr/share/fonts/truetype/gentium /usr/share/fonts/opentype/stix-word /usr/share/fonts/woff/font-awesome /usr/share/texmf/fonts/opentype/public/lm-math /usr/share/fonts/truetype/openoffice /usr/share/fonts/opentype/font-awesome /usr/share/fonts/truetype/font-awesome kind regards, Thilo