Unable to use Libertinus Math

I cloned the Libertinus repository into a subdirectory and am trying to compile the following with xelatex:

\documentclass{amsbook}
\usepackage{fontspec}
\usepackage{amsmath, amssymb}
\usepackage{unicode-math}

\setmainfont[
Path = ./libertinus/,
BoldFont={LibertinusSerif-Bold.otf},
ItalicFont={LibertinusSerif-Italic.otf},
BoldItalicFont={LibertinusSerif-BoldItalic.otf}
]{LibertinusSerif-Regular.otf}

\setmathfont[
Path=./libertinus/
]{LibertinusMath-Regular.otf}

\begin{document}

The following equation should be in Libertinus, but it is not.

$$\displaystyle\sum_{n=1}^\infty \dfrac{1}{n^2}=\dfrac{\pi^2}{6}$$

\end{document}


The text is correct, but the equation defaults to the usual LaTeX math font and I get the following bunch of error messages:

* fontspec warning: "script-not-exist-latn"
*
* Font 'LibertinusMath-Regular' does not contain script 'Math'.

* fontspec warning: "script-not-exist-latn"
*
* Font 'LibertinusMath-Regular' does not contain script 'Math'.

* fontspec warning: "icu-feature-not-exist-in-font"
*
* OpenType feature 'Style=MathScript' (ssty) not available for font
* 'LibertinusMath-Regular' with script 'Math' and language 'Default'.

* fontspec warning: "icu-feature-not-exist-in-font"
*
* OpenType feature 'Style=MathScriptScript' (ssty) not available for font
* 'LibertinusMath-Regular' with script 'Math' and language 'Default'.


I googled these error messages but found nothing helpful. How do I fix this problem?

• It works well with the version on TeX Live (6.5), but not with version 6.7 downloaded from the GitHub site. The repository has been archived. – egreg Mar 27 at 15:13
• @khaledhosny might be able to shed some light on this issue? – TheBigH Mar 27 at 15:48
• A new version of Libertinus (6.8) has been deployed at CTAN, so it will be in the next release of TeX Live, due in a few weeks. From the announcement: Fix missing “math” OpenType script from Libertinus Math. – egreg Apr 4 at 20:36

New versions of the Libertinus fonts have been deployed on CTAN (version 6.8) on April 4 2019 and the problem is solved.

The updated fonts will be available in the forthcoming release of TeX Live 2019 (and may already be available for MiKTeX).

\documentclass{amsbook}
\usepackage{fontspec}
\usepackage{amsmath, amssymb}
\usepackage{unicode-math}

\setmainfont[
Extension=.otf,
UprightFont={*-Regular},
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}
]{LibertinusSerif}

\setmathfont{LibertinusMath-Regular.otf}

\begin{document}

The following equation should be in Libertinus and it is.
$$\sum_{n=1}^\infty \dfrac{1}{n^2}=\dfrac{\pi^2}{6}$$

\end{document}


This is the complete console output.

This is XeTeX, Version 3.14159265-2.6-0.999991 (TeX Live 2019) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./thebigh.tex
LaTeX2e <2018-12-01>
(/usr/local/texlive/2019/texmf-dist/tex/latex/amscls/amsbook.cls
Document Class: amsbook 2017/10/31 v2.20.4
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the ?' option.
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)))
(/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/tuenc.def))
(/usr/local/texlive/2019/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amssymb.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/unicode-math/unicode-math.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/unicode-math/unicode-math-xetex.s
ty
(/usr/local/texlive/2019/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/filehook/filehook.sty)
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/fix-cm.sty
(/usr/local/texlive/2019/texmf-dist/tex/latex/base/ts1enc.def))
(/usr/local/texlive/2019/texmf-dist/tex/latex/unicode-math/unicode-math-table.t
ex))) (./thebigh.aux)
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/umsb.fd) [1]
(./thebigh.aux) )
Output written on thebigh.pdf (1 page).
Transcript written on thebigh.log.
`
• Fanstastic! Glad to know I wasn't doing something stupid. Thanks for your assistance. – TheBigH Apr 11 at 10:36