[XeTeX] ".ttf" automatically added to font names

David Carlisle d.p.carlisle at gmail.com
Fri May 12 16:18:38 CEST 2017


> So the only question remaining is: Will the xetex compiler developers
keep it like this


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)

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

/usr/local/texlive/2017/texmf-dist/fonts/opentype/public/cm-unicode/cmunrm.otf

I don't have them as .ttf  as far as I can see in tl2016 or tl2017.

David




On 12 May 2017 at 15:02, Dirk Hünniger <dirk.hunniger at googlemail.com> wrote:

> Hi,
>
> this works for me:
>
> \setmainfont[Path=/usr/share/fonts/truetype/cmu/,UprightFont
> =cmunrm,BoldFont=cmunbx,ItalicFont=cmunti,BoldItalicFo
> nt=cmunbi]{cmunbx.ttf}
>
> but this
>
> \setmainfont[Path=/usr/share/fonts/truetype/cmu/,UprightFont
> =cmunrm.ttf,BoldFont=cmunbx,ItalicFont=cmunti,
> BoldItalicFont=cmunbi]{cmunbx.ttf}
>
> causes the following error
>
>>
>> kpathsea:make_tex: Invalid fontname `[/usr/share/fonts/truetype/cmu/cmunrm.ttf.ttf]/OT',
>> contains '['
>>
>>
>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>> !
>> ! fontspec error: "font-not-found"
>> !
>> ! The font "cmunrm.ttf" cannot be found.
>> !
>> ! See the fontspec documentation for further information.
>> !
>> ! For immediate help type H <return>.
>> !...............................................
>>
>> l.23 ...=cmunti,BoldItalicFont=cmunbi]{cmunbx.ttf}
>>
> 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
>
> \setmainfont[Path=/usr/share/fonts/truetype/cmu/,UprightFont
> =cmunrm.ttf,BoldFont=cmunbx.ttf,ItalicFont=cmunti.ttf,Bold
> ItalicFont=cmunbi.ttf]{cmunbx.ttf}
>
> I just need to know so I can use the right form when generation latex code
> in my system.
> Yours Dirk
>
>
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20170512/7ad6780c/attachment.html>


More information about the XeTeX mailing list