aliftype / xits

XITS - OpenType implementation of STIX fonts with math support
SIL Open Font License 1.1
351 stars 35 forks source link

\setmathfont{XITS Math} breaks in XeTeX after v1.200 #61

Closed stone-zeng closed 6 years ago

stone-zeng commented 6 years ago

Use font name XITS Math in unicode-math will lead to an error, while font filename is still normal:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{XITS Math}
% \setmathfont{XITSMath-Regular.otf}
\begin{document}
  Hello $a+b=c$
\end{document}

Run xdvipdfmx after xetex, I get

xdvipdfmx:fatal: Cannot proceed without the font: C:/texlive/2018/texmf-dist/fonts/opentype/public/xits/XITSMath-Regular.woff

Output file removed.

xdvipdfmx log file:

<FONTMAP:c:/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map><FONTMAP:c:/texlive/2018/texmf-var/fonts/map/dvipdfmx/updmap/kanjix.map><FONTMAP:c:/texlive/2018/texmf-dist/fonts/map/dvipdfmx/ckx.map>1 -> 1.pdf
DVI Comment:  XeTeX output 2018.10.09:1406
<AGL:texglyphlist.txt><AGL:pdfglyphlist.txt><AGL:glyphlist.txt>[1<c:/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf@9.96pt<NATIVE-FONTMAP:c:/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf/0/H/65536/0/0>
pdf_font>> Input encoding "Identity-H" requires at least 2 bytes.
pdf_font>> The -m <00> option will be assumed for "c:/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf".
(CID:LMRoman10-Regular)
pdf_font>> Type0 font "c:/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf" cmap_id=<Identity-H,0> opened at font_id=<c:/texlive/2018/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf/0/H/65536/0/0,0>.
><C:/texlive/2018/texmf-dist/fonts/opentype/public/xits/XITSMath-Regular.woff@9.96pt
xdvipdfmx:fatal: Cannot proceed without the font: C:/texlive/2018/texmf-dist/fonts/opentype/public/xits/XITSMath-Regular.woff

Output file removed.

In LuaTeX, it can be compiled normally.

It seems that it use the woff version rather than otf. It seems that woff fonts can't be loaded by xetex/xdvipdfmx. So please consider to remove the woff fonts from CTAN.

khaledhosny commented 6 years ago

Right, they should be removed from TeX Live/CTAN. My fault since they were included in the tarball.

khaledhosny commented 6 years ago

I uploaded a new tarball to CTAN without the WOFF files, should be soon applied by CTAN team and then reach TeX distributions.