<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Bob Tennent</strong> <span dir="auto"><<a href="mailto:rdtennent@gmail.com">rdtennent@gmail.com</a>></span><br>Date: Tue, Sep 21, 2021 at 7:38 PM<br>Subject: Re: Options for pairing Concrete Roman with a .ttf font<br>To: David Carlisle <<a href="mailto:d.p.carlisle@gmail.com">d.p.carlisle@gmail.com</a>><br></div><br><br><div dir="ltr">Yes, there were type1 fonts listed.  I removed the type1 line, re-ran fc-cache and now xelatex works.  Thanks. <div> I hope this exchange helps users who want to use font names. I still prefer using file names.  </div><div><br></div><div>Bob</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 21, 2021 at 7:17 PM David Carlisle <<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> %  fc-list | grep 'CMU Concrete' | grep opentype<br>
<br>
lists the four otf fonts,<br>
<br>
what do you get without the grep opentype?  the xdvipdfmx error (I<br>
think) is telling you that it picked up a non opentype font that;s why<br>
I recommend not including the type1 line that is in the fontconfig<br>
file distributed with texlive<br>
<br>
On Tue, 21 Sept 2021 at 23:49, Bob Tennent <<a href="mailto:rdtennent@gmail.com" target="_blank">rdtennent@gmail.com</a>> wrote:<br>
><br>
> I did this and now<br>
><br>
>    %  fc-list | grep 'CMU Concrete' | grep opentype<br>
><br>
> lists the four otf fonts,<br>
><br>
> but I'm still getting<br>
><br>
>    xdvipdfmx:fatal: Invalid font: -1 (0)<br>
><br>
> using xelatex.<br>
><br>
><br>
> On Tue, Sep 21, 2021 at 5:26 PM David Carlisle <<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.com</a>> wrote:<br>
>><br>
>> On Tue, 21 Sept 2021 at 18:30, Bob Tennent <<a href="mailto:rdtennent@gmail.com" target="_blank">rdtennent@gmail.com</a>> wrote:<br>
>> ><br>
>> > David Carlisle writes<br>
>> ><br>
>> > >The error here is in the font name, the Opentype Computer Modern<br>
>> > Concrete from the Computer Modern Unicode collection is CMU Concrete.<br>
>> ><br>
>> > As far as I can tell, the "collection" referred to is the cm-unicode package.<br>
>> ><br>
>> > \setmainfont{CMU Concrete}<br>
>> ><br>
>> > works with lualatex but apparently not with xelatex.  It might help if we used the<br>
>> > file name of the otf font rather than the font name!<br>
>> ><br>
>> > Bob T.<br>
>> ><br>
>><br>
>> It works with xelatex but to find texlive fonts by font name xetex<br>
>> needs the font directories to be added to the fontconfig configuration<br>
>> texlive supplies a fontconfig file for that purpose installed at<br>
>> /usr/local/texlive/2021/texmf-var/fonts/conf/texlive-fontconfig.conf<br>
>> or equivalent place but it is not added to the fontconfig by default<br>
>> you need to do that post install<br>
>><br>
>> it contains<br>
>><br>
>> <?xml version="1.0"?><br>
>> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"><br>
>> <fontconfig><br>
>>   <dir>/usr/local/texlive/2021/texmf-dist/fonts/opentype</dir><br>
>>   <dir>/usr/local/texlive/2021/texmf-dist/fonts/truetype</dir><br>
>>   <dir>/usr/local/texlive/2021/texmf-dist/fonts/type1</dir><br>
>> </fontconfig><br>
>><br>
>> (although I'd recommend not including the type1 line)<br>
>><br>
>><br>
>> see section 3.4.4 of the texlive manual.<br>
>><br>
>> David<br>
</blockquote></div>
</div></div>