<div dir="ltr"><div><br></div><div><br></div><div>TL/DR:</div><div><br></div><div>Should the sample fontconfig file suggest including type1 fonts?</div><div>  <dir>/usr/local/texlive/2021/texmf-dist/fonts/type1</dir><br></div><div><br></div><div><br></div><div>longer version...</div><div><br></div><div>I had a test file</div><div><br></div><div>\documentclass{article}<br>\usepackage{fontspec}<br><br>\newfontfamily{\nserif}{Noto Serif}<br><br>\begin{document}<br><br>{\nserif abc}<br><br>\end{document}</div><div><br></div><div>That worked in tl 2020 and failed in 2021  xelatex with</div><div><br></div><div><br></div><div>xdvipdfmx:fatal: Invalid font: -1 (0)<br><br>No output PDF file written.<br> )<br>Error 256 (driver return code) generating output;<br>file f2.pdf may not be valid.<br>Transcript written on f2.log.</div><div><br></div><div>This failed in linux and cygwin texlive 2021.</div><div><br></div><div><br></div><div>With a hint from Ulrike, that seems to be because dvipdfmx is loading the type1 font from</div><div>/usr/local/texlive/2021/texmf-dist/fonts/type1/google/noto/NotoSerif-Regular.pfb</div><div>rather than the truetype version.</div><div><br></div><div>It's not entirely clear what changed (I literally just edited my local fontconfig replacing 2020 by 2021)  but deleting the type1 line and re-running fc-cache fixed the issue.</div><div><br></div><div>as the fontconfig is (I think?) just for xelatex, is it useful to include the type1 directory at all?</div><div><br></div><div>Possibly separately would it be possible for xdvipdfmx to only use the type1 font if no matching truetype or opentype is found?</div><div><br></div><div>David</div><div><br></div><div><br></div><div><br></div><div><br></div></div>