Open sgolovan opened 3 years ago
When I load the tilde (or hat) accent from another font using \setmathfont[range="0303]{Fontname Math}, its wide equivalent is not loaded.
\setmathfont[range="0303]{Fontname Math}
Loading it via \setmathfont[range="0303="0304]{Fontname Math} works fine for \widetilde, but obviously redefines \bar, which may be not desirable.
\setmathfont[range="0303="0304]{Fontname Math}
\widetilde
\bar
Shouldn't the wide accent also be loaded along with the short one? Or is there a way to load the wide accent from another font separately?
I've tested this using LuaTeX with unicode-math 2020/01/31 v0.8q.
unicode-math
\documentclass{article} \usepackage{fontspec} \setmainfont{Fira Sans} \usepackage{unicode-math} \begin{document} \setmathfont{Fira Math} Fira Math \verb|\tilde|, \verb|\widetilde|, \verb|\bar|: $\tilde{Var}$, $\widetilde{Var}$, $\bar{X}$. \setmathfont[range="0303]{GFS Neohellenic Math} \setmathfont[range={}]{Fira Math} GFS Neohellenic Math \verb|\tilde|, Fira Math \verb|\widetilde|, \verb|\bar|: $\tilde{Var}$, $\widetilde{Var}$, $\bar{X}$. \setmathfont[range="0303-"0304]{GFS Neohellenic Math} \setmathfont[range={}]{Fira Math} GFS Neohellenic Math \verb|\tilde|, \verb|\widetilde|, \verb|\bar|: $\tilde{Var}$, $\widetilde{Var}$, $\bar{X}$. \end{document}
I forgot to mention a quick workaroud:
\setmathfont[range="0303-"0304]{GFS Neohellenic Math} \setmathfont[range={"0304}]{Fira Math}
Description
When I load the tilde (or hat) accent from another font using
\setmathfont[range="0303]{Fontname Math}
, its wide equivalent is not loaded.Loading it via
\setmathfont[range="0303="0304]{Fontname Math}
works fine for\widetilde
, but obviously redefines\bar
, which may be not desirable.Shouldn't the wide accent also be loaded along with the short one? Or is there a way to load the wide accent from another font separately?
I've tested this using LuaTeX with
unicode-math
2020/01/31 v0.8q.Minimal example demonstrating the issue