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

2017-05-12 Thread Dirk Hünniger
Hello, my name is Dirk Hünniger. Since approx 10 years I am working on mediawiki2latex a pdf and latex export tool for mediawiki. I am currently using Ubuntu 17.04 and observe a behavior of the \setmainfont command that I don't understand. The string ".ttf" seems to be added magically, which

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

2017-05-12 Thread David Carlisle
> 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

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

2017-05-12 Thread Ulrike Fischer
Am Fri, 12 May 2017 16:02:32 +0200 schrieb Dirk Hünniger: > \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 >>

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

2017-05-12 Thread Ulrike Fischer
Am Fri, 12 May 2017 11:29:20 +0200 schrieb Dirk Hünniger: > Hello, > my name is Dirk Hünniger. Since approx 10 years I am working on > mediawiki2latex a pdf and latex export tool for mediawiki. I am > currently using Ubuntu 17.04 and observe a behavior of the \setmainfont > command that I

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

2017-05-12 Thread Dirk Hünniger
Hi, look at the error message closely. It talks about cmunrm.ttf.ttf This file obviously does not exist since it got a doubled extension. causes the following error kpathsea:make_tex: Invalid fontname `[/usr/share/fonts/truetype/cmu/cmunrm.ttf.ttf]/OT', contains '[' Yes, as I wrote the

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

2017-05-12 Thread Ulrike Fischer
Am Fri, 12 May 2017 16:32:10 +0200 schrieb Dirk Hünniger: > look at the error message closely. It talks about >> cmunrm.ttf.ttf I saw this. But it comes from the UprightFont option. So I'm asking again: why don't you drop it? Fontspec obviously don't expect that the value of this key has an

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

2017-05-12 Thread Dirk Hünniger
Hi Ulrike, thanks for your help so far. Since this way of writing it seems to work today. \setmainfont[Path=/usr/share/fonts/truetype/cmu/,UprightFont=cmunrm,BoldFont=cmunbx,ItalicFont=cmunti,BoldItalicFont=cmunbi]{cmunbx.ttf} I changed my source code to use this way of writing it. I will