unicode-math
unicode-math copied to clipboard
Bad size of \overrightarrow when using LuaLaTeX
Description
The size of \overrightarrow when using LuaLaTeX is wrong for some letters. In XeLaTeX it appears to be fine.
Add info or delete as appropriate:
- Relevant for LuaTeX
- Issue tracker has been searched for similar issues? Yes
Minimal example demonstrating the issue
\documentclass{scrartcl}
\usepackage{unicode-math}
\begin{document}
\[\overrightarrow{PQ}=\overrightarrow{Q}-\overrightarrow{P}\]
\end{document}
Result in LuaLatex:
Result in XeLatex:
This is a LuaTeX issue related to how LuaTeX applies italic correction differently. LuaTeX calculates the accent size using the glyph bounds without adding the italic correction, while XeTeX adds it.