Open mennucc opened 2 years ago
In the current version (0.8q
with TeXLive 2022) the spacing is only excessive with Latin Modern.
\documentclass{article}
\usepackage{unicode-math}
\begin{document}
\setmathfont{latinmodern-math.otf}
\[F_j\qquad \symcal F_j\]
\setmathfont{texgyrepagella-math.otf}
\[F_j\qquad \symcal F_j\]
\setmathfont{STIXTwoMath-Regular.otf}
\[F_j\qquad \symcal F_j\]
\setmathfont{Asana-Math.otf}
\[F_j\qquad \symcal F_j\]
\setmathfont{LibertinusMath-Regular.otf}
\[F_j\qquad \symcal F_j\]
\setmathfont{Garamond-Math.otf}
\[F_j\qquad \symcal F_j\]
\end{document}
@marcin-serwin I guess you used LuaLeTeX since I can reproduce your result. XeLaTeX 3.141592653-2.6-0.999994 (TeX Live 2022) however gives excess spacing for STIXTwoMath as well:
This is an engine and/or font issue. For STIX Two Math, the script F has math kerning for positioning the subscripts but XeTeX is not applying it.
I tried again my initial example with a more recent version of LuaLaTeX ( This is LuaHBTeX, Version 1.14.0 (TeX Live 2022/dev/Debian)
and it looks fine
wheras with XeLaTeX it is horrible (This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2022/dev/Debian)
If I use the standard font (and not Stix) then both xelatex and lulatex are horrible.
FYI, there is a bug in the OpenType spec. LuaTeX is following the letter of the spec, which gives better results here (due to bad font data) while XeTeX is following the intent of the spec and matches Microsoft implementation.
I reported an issue against an OpenType spec, and eventually LuaTeX will need to be fixed as well as the fonts, so you should report your issue to the individual fonts that are not behaving as expected.
The issue here should be close since there is no much unicode-math can do here.
Description
enabling
unicode-math
adds to much space between mathcal symbol and subscriptinfo
Minimal example demonstrating the issue
Further details
I am using texlive version 2021.20220204-1 as packaged in Ubuntu
The spacing between the mathcal F and the subscript in the above example (using![immagine](https://user-images.githubusercontent.com/108620/176003640-52d9fb5b-c9a6-4a54-be22-5b40f821c8b7.png)
XeTeX
) is as followsif I use![immagine](https://user-images.githubusercontent.com/108620/176003894-4ed1da39-91be-4139-aa68-88dd514597a0.png)
unicode-math
and I uselatin modern math
it isif I disable![immagine](https://user-images.githubusercontent.com/108620/176003712-9387e98b-143f-4522-8e63-8995d8c94c0d.png)
unicode-math
it is as followsresults do not vary in a visible way by using
LuaLaTeX
instead ofXeTeX
IMHO the spacing in the first two cases is excessive, while the last one is fine.