<div dir="ltr"><div><br></div><div>>
So the only question remaining is: Will the xetex compiler developers
keep it like this</div><div><br></div><div><br></div><div>Note that mostly this is not a xetex question as you are using the syntax of the fontspec macro package rather than the xetex primitive font loading syntax (although of course these are not unrelated)</div><div><br></div><div>it might be more portable to use the opentype cm Unicode distributed with tex than the ttf ones that you are pulling from /usr/share/fonts eg I have</div><div><br></div><div>/usr/local/texlive/2017/texmf-dist/fonts/opentype/public/cm-unicode/cmunrm.otf</div><div><br></div><div>I don't have them as .ttf as far as I can see in tl2016 or tl2017. <br></div><div><br></div><div>David<br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2017 at 15:02, Dirk Hünniger <span dir="ltr"><<a href="mailto:dirk.hunniger@googlemail.com" target="_blank">dirk.hunniger@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
this works for me:<br>
<br>
\setmainfont[Path=/usr/share/f<wbr>onts/truetype/cmu/,UprightFont<wbr>=cmunrm,BoldFont=cmunbx,<wbr>ItalicFont=cmunti,BoldItalicFo<wbr>nt=cmunbi]{cmunbx.ttf}<br>
<br>
but this<br>
<br>
\setmainfont[Path=/usr/share/f<wbr>onts/truetype/cmu/,UprightFont<wbr>=cmunrm.ttf,BoldFont=cmunbx,<wbr>ItalicFont=cmunti,<wbr>BoldItalicFont=cmunbi]{cmunbx.<wbr>ttf}<br>
<br>
causes the following error<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
kpathsea:make_tex: Invalid fontname `[/usr/share/fonts/truetype/cm<wbr>u/cmunrm.ttf.ttf]/OT', contains '['<br>
<br>
<br></span><span class="">
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<wbr>!!!!!!!!!!!!!!!!!!<br>
!<br>
! fontspec error: "font-not-found"<br>
!<br></span>
! The font "cmunrm.ttf" cannot be found.<span class=""><br>
!<br>
! See the fontspec documentation for further information.<br>
!<br>
! For immediate help type H <return>.<br>
!.............................<wbr>..................<br>
<br></span>
l.23 ...=cmunti,BoldItalicFont=cmun<wbr>bi]{cmunbx.ttf}<br>
</blockquote>
So the only question remaining is: Will the xetex compiler developers keep it like this will a later version again require to write out the extensions like in<br>
<br>
\setmainfont[Path=/usr/share/f<wbr>onts/truetype/cmu/,UprightFont<wbr>=cmunrm.ttf,BoldFont=cmunbx.<wbr>ttf,ItalicFont=cmunti.ttf,Bold<wbr>ItalicFont=cmunbi.ttf]{cmunbx.<wbr>ttf}<br>
<br>
I just need to know so I can use the right form when generation latex code in my system.<br>
Yours Dirk<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
------------------------------<wbr>--------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" rel="noreferrer" target="_blank">http://tug.org/mailman/listin<wbr>fo/xetex</a><br>
</div></div></blockquote></div><br></div>