[XeTeX] ".ttf" automatically added to font names
Dirk Hünniger
dirk.hunniger at googlemail.com
Fri May 12 16:02:32 CEST 2017
Hi,
this works for me:
\setmainfont[Path=/usr/share/fonts/truetype/cmu/,UprightFont=cmunrm,BoldFont=cmunbx,ItalicFont=cmunti,BoldItalicFont=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,BoldItalicFont=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
More information about the XeTeX
mailing list