2

As per Microsoft's Typography documentation, the subscriptShiftDown parameter has the description

The standard shift down applied to subscript elements. Positive for moving in the downward direction. Suggested: os2.ySubscriptYOffset.

and the superscriptShiftUp parameter has the description

Standard shift up applied to superscript elements. Suggested: os2.ySuperscriptYOffset.

So, when I use the \Umathsubshiftdown and \Umathsubshiftup commands to change these parameters to zero, I get that the baselines of the subscripts, superscripts and the main glyphs are not aligned. Why?

\documentclass{article}

\usepackage{ifluatex}
\usepackage[newcmbb]{fontsetup}

\ifluatex
  \everymath=\expandafter{%
    \the\everymath%
    \Umathsubshiftdown\textstyle=0pt}
  \everydisplay=\expandafter{%
    \the\everydisplay%
    \Umathsubshiftdown\displaystyle=0pt}
  \everymath=\expandafter{%
    \the\everymath%
    \Umathsupshiftup\textstyle=0pt}
  \everydisplay=\expandafter{%
    \the\everydisplay%
    \Umathsupshiftup\displaystyle=0pt}
\fi

\begin{document}
    \centering \(a_b a^b \symbb{R}^2 \symup{C}^\infty\)
\end{document}

baseline arrangement opentype math

2
  • 1
    Maybe you also need to set subscriptTopMax and superscriptBottomMin? Commented Jan 18 at 7:56
  • 1
    There are more than one constant that controls the position of subscripts, see github.com/notofonts/math/blob/main/documentation/… Commented Jan 18 at 10:25

1 Answer 1

4

See also \Umathsubtopmax etc. in luatex manual: the top of standalone subscripts cannot be higher than this above the baseline. So, when you set

\Umathsubtopmax\textstyle=10pt
\Umathsubshiftdown\textstyle=0pt

then you have the subscript in $a_2$ at baseline.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.