<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 17/11/2021 09:48, Marcel Fabian
      Krüger wrote:</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <blockquote type="cite"
      cite="mid:20211117094828.nldl4dz6ydkdyoh3@beeblebrox">
      <pre class="moz-quote-pre" wrap="">The string quotes don't have any special meaning in XeTeX. The font name
is read using TeX's normal file scanning routine which (at least for TeX
Live) uses string quotes to allow embedding spaces in the name and then
discards them. Therefore they never reach the parts of XeTeX where the
decision between system fonts and classical fonts is made.

If you want to load the font by fontname, you can try to add a colon
instead to add an empy feature string. Then the TFM file isn't found. So
you would have e.g. `\font \cmr = "cmr10:"` (I haven't checked if the
font is actually found by that name, but if you have an OpenType font
with fontname cmr10 installed than this would work)</pre>
    </blockquote>
    <p>Many thanks for your comments, Marcel, but I am still somewhat
      confused.  The XeTeX manual says :</p>
    <p>
      <blockquote type="cite">This distinction between file name lookups
        and system font name lookups is crucial<br>
        to understanding XƎTEX’s behavior and to writing portable
        documents (in short: don’t<br>
        use system fonts).<br>
            System font name lookups use (except on Mac OS X) the
        fontconfig library; running<br>
        fc-list should show you the font names available. E.g.,<br>
        <br>
        <tt>        \font\1="Liberation Serif"                         
        </tt><font size="-2"><i>look for OS-installed font</i></font></blockquote>
      <br>
      which suggested to me that it was the string quotes that were
      forcing XeTeX to look for an OS-installed (i.e., system) font. 
      And when I try :</p>
    <p>
      <blockquote type="cite"><tt>\font \cmr = "cmr10:"</tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;
          line-height:100%;"><tt>\cmr</tt></p>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;
          line-height:100%;"><tt>The quick brown fox jumps right over
            the laxy dog's back.</tt></p>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;
          line-height:100%;"><tt>\end</tt></p>
      </blockquote>
      <br>
      I am told :</p>
    <p>
      <blockquote type="cite"><tt>This is XeTeX, Version
          3.141592653-2.6-0.999993 (TeX Live 2021/W32TeX) (preloaded
          format=xetex)</tt><tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>
            restricted \write18 enabled.</tt></p>
        <tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>entering
            extended mode</tt></p>
        <tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>(./untitled-5.tex</tt></p>
        <tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>!
            Font \cmr=cmr10: not loadable: Metric (TFM) file or
            installed font not found.</tt></p>
        <tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt><to
            be read again> </tt></p>
        <tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>            
            \cmr </tt></p>
        <tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>l.4
          </tt><tt>\cmr</tt></p>
        <tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p>
        <tt>
        </tt>
        <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
          margin-right:0px; -qt-block-indent:0; text-indent:0px;"><tt>?
          </tt></p>
      </blockquote>
      <br>
      As reported earlier, Tom's "cmr10.otf" <i>is</i> installed, but
      your suggested syntax appears not to find it.  And it is not found
      with <tt>"\font \cmr = "CMR10 Regular:"</tt>, but <i>is</i>
      found with <tt>\font \cmr = "CMR10:"</tt>.  Curiouser and
      curiouser !  <br>
    </p>
    <p>Oh, and <tt>\font \cmr = "CMR9:" </tt>fails, so at least I have
      a way of forcing a system font to be used, even if I have to
      upper-case the name.  But I am still very concerned that <tt>\font
        \cmr = "CMR10.xyz:" </tt>finds the font and reports no error.<br>
      <tt></tt></p>
    <p>-- <br>
      <i>Philip Taylor</i><br>
      <br>
    </p>
  </body>
</html>