MWE:
% Xe-/LuaLaTeX
\documentclass{article}
\usepackage{unicode-math}
\setmathfont[math-style=literal]{Latin Modern Math}
\begin{document}
$\dot b, \dot , \dot{\rm b}$
\end{document}
The accent placement seems to be wrong, in my opinion. The \dot{\rm b} example seems to be right. How to get this as the default behaviour?
OK, in LuaTeX we can change the top_accent values of the OTF table, as Marcel Krüger has done:
Fixing the position of math accents when using unicode-math in lualatex with a text font for letters and digits
But is there a simpler solution? In this answer a faked math font is used, but I would like to patch a real math font. So some lines of code can be omitted, can't they?
What about XeTeX? Is there a solution, too? Are the top_accent values represented by a \fontdimen?


\rmhasn't been defined in latex by default since 1993, surprising to see it in a lualatex document. – David Carlisle Jul 10 '21 at 10:22b, not on the left side. And this happens in the "forbidden"\rmsolution. – Weißer Kater Jul 10 '21 at 10:35\vec band\ddddot blook horrible. The half of vector arrow does not cover theb. Compare it also to\vec bwithtfmmath fonts. ;) – Weißer Kater Jul 10 '21 at 10:49bor do you want to get accents over all characters centered? – Marcel Krüger Jul 10 '21 at 12:27