stipub / stixfonts

OpenType Unicode fonts for Scientific, Technical, and Mathematical texts
SIL Open Font License 1.1
706 stars 41 forks source link

Too much space above and below reduced size fractions #127

Open John02139 opened 5 years ago

John02139 commented 5 years ago
\documentclass[11pt]{article}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}
\setmathfont{STIX Two Math}

\begin{document}

\[  
\frac{\cos x}{\sin x} = \frac{1}{\frac{\sin x}{\cos x}}
\]

\end{document}
screen shot 2018-09-09 at 3 11 07 pm

The separation between sin x, cos x, and the lower horizontal rule in the fraction at right is larger than in other fonts -- does not seem to be scaling with the font size

marcianx commented 4 years ago

Agreed. In particular, the extra space is really jarring in \textstyle

E.g. on XeTeX with

$$
{\scriptscriptstyle\frac{x}{2}}
{\scriptstyle\frac{x}{2}}
{\textstyle\frac{x}{2}}
{\displaystyle{\frac{x}{2}}}
{\scriptscriptstyle {x \atop 2}}
{\scriptstyle {x \atop 2}}
{\textstyle {x \atop 2}}
{\displaystyle {x \atop 2}}
$$

I get image (especially the third one) whereas the regular LaTeX font gives something far more compact: image

tiroj commented 3 years ago

@davidmjones Is issue still live? And is it something specific to XeTex or is there something we can do in the font to affect this?

yjhn commented 1 year ago

Same issue appears with LuaTeX.