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

lualatex and mathsf italic and overline: not centered #623

Open Firestar-Reimu opened 9 months ago

Firestar-Reimu commented 9 months ago

Description

lualatex and mathsf italic and overline: not centered. xelatex do not have this issue

Add info or delete as appropriate:

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{unicode-math}
\unimathsetup{mathsf=sym,sans-style=italic}
\begin{document}
    \[
        \mathsf{\overline{x}} = \overline{x}  % \overline{\mathsf{x}} has the same issue too
    \]
\end{document}

Further details

lualatex:

Screenshot_20230921_145738

xelatex:

Screenshot_20230921_145653

khaledhosny commented 3 months ago

This is an engine issue. It is caused by different handling of italic correction in LuaTeX and XeTeX.