latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
239 stars 28 forks source link

loading libertinus bold fails #507

Closed hvoss49 closed 5 years ago

hvoss49 commented 5 years ago

Description

Problem with bold libertinus.

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{libertinusmath-regular.otf}%% works
\setmathfont{libertinusmath-bold.otf}[version=bold] %%% Problem!!
\begin{document}
\[
  a = b
\]
\end{document}

looks like a problem with the font. But why doesn't it happened in the past? Up-to-date TL2018

Further details

lualatex test:

Runaway argument? \cs_if_eq:NNTF \l_fontspec_font \font {\tl_set:Nx \lfontspec_tmp_tl \ETC. ! File ended while scanning use of \fontspec_ot_validate_tag:w.

\par <*> zzz2
stone-zeng commented 5 years ago

See https://github.com/wspr/fontspec/issues/346.

However, I can't reproduce this issue, either with xelatex or lualatex.

Liam0205 commented 5 years ago

Invited by @Stone-Zeng , I checked the MWE and no error occurred when compiling.

wspr commented 5 years ago

In my development code I also can't reproduce, sorry. There have been a lot of fontspec bugs recently that could have caused this. Apologies for the inconvenience and thanks for taking the time to report the bug.

And thanks @stone-zeng & @Liam0205 for checking!