<div dir="ltr"><div><div><div><div><div>On 15 November 2017 at 12:48, Akira TAGOH <<a href="mailto:akira@tagoh.org">akira@tagoh.org</a>> wrote:<br><br>> Are you asking if there are any way to do something in XML instead of "ln -s"?</div><div><br></div><div>Yes. Just in case there's a better (canonical) way to reject and allow fonts.</div><div><br></div><div>> Here is to allow only /usr/share/fonts/dejavu/DejaVuSans.ttf and<br>> reject all of fonts under /usr/share/fonts.<br>><br>> <fontconfig><br>>   <selectfont><br>>     <rejectfont><glob>/usr/share/fonts/*</glob></rejectfont><br>>     <acceptfont><br>>       <glob>/usr/share/fonts/dejavu</glob><br>>       <glob>/usr/share/fonts/dejavu/DejaVuSans.ttf</glob><br>>     </acceptfont><br>>   </selectfont><br>> </fontconfig><br>><br>> Adding a directory too is the trick. fontconfig checks a directory<br>> first then filenames in it so just adding a filename without dir<br>> fails.<br><br></div>Hey, <br></div><div> thanks for your response.</div><div><br></div><div> It's not working on my end, which is surely my fault!<br><br></div>I note that my path is: /usr/share/fonts/truetype/dejavu/ but even adjusting for that, there is no appearance of DejaVuSans in fc-list.<br><br></div>I tried various paths like:<br>/usr/share/fonts/truetype/dejavu/*<br>/usr/share/fonts/truetype/<br>And various slash-no-slash on the ends.<br><br></div>None of it works. I see only the fonts in my user fonts directory. It's as if that rejectfonts glob is too powerful somehow!<br><br></div>/d</div>