运行下面的 MWE 可以正确使用 fontspec 2.6l(Texlive 2018/Win 7 中的 rev 49739),但使用 fontspec 2.7(rev 49809)时会出现错误
% !TeX encoding = UTF-8
% !TeX spellcheck = nl_NL
% !TeX TS-program = xelatex
\documentclass{article}
\usepackage{parskip}
%% Find out what engine we're running...
\usepackage{ifluatex,ifxetex}
%% Different setup for xe
\ifxetex
%% https://tex.stackexchange.com/questions/439998/math-in-ms-calibri/440080
\usepackage[math-style=TeX]{unicode-math}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Calibri}
\defaultfontfeatures{Scale=MatchUppercase}
\setsansfont{Calibri}
\setmonofont{Consolas}
\setmathfont[slash-delimiter=frac]{Cambria Math}
\setmathfont[range=up]{Calibri}
\setmathfont[range=it]{Calibri Italic}
\setmathfont[range=bfup]{Calibri Bold}
\setmathfont[range=bfit]{Calibri Bold Italic}
\setoperatorfont\normalfont % For log, sin, cos, etc.
\else
\usepackage[utf8]{inputenc}
\usepackage{nimbusmono}
\usepackage[scaled]{helvet}
\usepackage[bitstream-charter]{mathdesign}
\fi
\begin{document}
Text
\end{document}
错误提示:
<snip>
Package fontspec Warning: Font "Calibri" does not contain requested Script "".
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.22 \setmathfont
[range=it]{Calibri Italic}
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
</snip>
那么问题是什么以及如何解决它?