<div dir="ltr"><div><br></div><div>If I try the following plain tex in xetex</div><div><br></div><div><br>\font\zz="DejaVu Serif"<br><br>\zz   abc<br><br>\font\zzz="DejaVu Sreif"<br><br>\zzz   abc<br><br><br>\bye</div><div><br></div><div><br></div><div><br></div><div>Then the first one works but the second, with the typo, fails, but before the expected  not found error you get an internal error about the space</div><div><br></div><div><br></div><div>kpathsea:make_tex: Invalid filename `DejaVu Sreif', contains ' '<br><br>! Font \zzz="DejaVu Sreif" not loadable: Metric (TFM) file or installed font no<br>t found.<br></div><div><br></div><div><br></div><div><br></div><div>This is particularly disturbing if you use latex's fontspec interface as that tries to find bold and italic variants so you end up with multiple spurious warnings:<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>
<pre class="gmail-full">kpathsea:make_tex: Invalid filename `Andika Blub', contains ' '
kpathsea:make_tex: Invalid filename `Andika Blub', contains ' '
kpathsea:make_tex: Invalid filename `Andika Blub/BI', contains ' '
kpathsea:make_tex: Invalid filename `Andika Blub', contains ' '
kpathsea:make_tex: Invalid filename `Andika Blub/B', contains ' '
kpathsea:make_tex: Invalid filename `Andika Blub', contains ' '
kpathsea:make_tex: Invalid filename `Andika Blub/I', contains ' '
kpathsea:make_tex: Invalid filename `Andika Blub', contains ' '

! Package fontspec Error: The font "Andika Blub" cannot be found.<br><br></pre><pre class="gmail-full">If you use the xetex filename syntax with a missing file <br><br></pre><pre class="gmail-full">\font\zz="[anything]"<br><br></pre><pre class="gmail-full">Then you get these errors whether or not there is a space:<br><br>kpathsea:make_tex: Invalid filename `[anything]', contains '['<br><br><br></pre><pre class="gmail-full"><br></pre>Ulrike tells me that the miktex version avoids the make_tex errors.<br><br>Could the make_tex call preserve the original quotes so that the space isn't a problem, and [ is handled as a system filename, so silently skipped?, while spaces in font filenames are rare, spaces in internal font names (which is what is intended here) are not rare at all.</div><div><br></div><div>David</div><div><br> </div></div>