# \dot not centred above \symbf of a capital letter

Using TeX Gyre Pagella as my maths font, the "fluxion" dot is not centred properly above capital bold-faced Latin symbols.

Here is a MWE:

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{texgyrepagella-math.otf}

\begin{document}
How to centre the dot over the character?  $\dot\symbf{x}$ works but $\dot\symbf{X}$ does not.

The same happens if displayed:
\begin{displaymath}
\end{displaymath}
\end{document}


If I comment out the \setmathfont line, then things work. I'm compiling with an up-to-date TL 2016 distribution.

• try \dot\mathbf{X}. By the way: unicode-math must be loaded before setmainfont ... – user2478 Nov 3 '16 at 11:46
• Oops, yes, that was me reordering the MWE :) It's in the right order in the original file. I was under the impression that \mathbf was deprecated for \symbf... – José Figueroa-O'Farrill Nov 3 '16 at 11:48
• @JoséFigueroa-O'Farrill You're right using \symbf in this case; \mathbf does a different thing. It seems like a bug in the Pagella Math font, because it happens with both LuaTeX and XeTeX. If I use Termes Math or Asana Math the output is as expected. Anyway, correct input should be \dot{\symbf{x}} – egreg Nov 3 '16 at 11:53
• @JoséFigueroa-O'Farrill: \mathbf is not deprecated, it has another meaning! You are using Pagella for text and math the reason why it should make no difference here. – user2478 Nov 3 '16 at 11:59

The affected characters seem to be D, X and Y. It's a bug in the font, as it happens both with LuaTeX and XeLaTeX, but not with other math fonts.

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{TeX Gyre Pagella Math}
%\setmathfont{Asana Math}

\begin{document}
How to centre the dot over the character?  $\dot{\symbf{x}}$ works but $\dot{\symbf{X}}$ does not.

\count255=\numexprA-1\relax
\loop\ifnum\count255<Z
$\dot{\symbf{\Uchar\count255}}$
\repeat

\count255=\numexprA-1\relax
\loop\ifnum\count255<Z
$\acute{\symbf{\Uchar\count255}}$
\repeat

\count255=\numexprA-1\relax
\loop\ifnum\count255<Z
$\mathring{\symbf{\Uchar\count255}}$
\repeat

\count255=\numexpra-1\relax
\loop\ifnum\count255<z
$\dot{\symbf{\Uchar\count255}}$

\setmathfont[range=\symbf]{Asana Math}