Open mdeff opened 2 years ago
Please confirm which version of the STIX Two Math font you are testing here. We did work coordinating the variations and heights of delimiters recently, so I will track this issue to see if we have succeeded in resolving the problem.
Thanks for the quick feedback! I'm unsure how to check the version, but fc-query STIXTwoMath-Regular.otf
reports fontversion: 138281(i)(s)
. Is there a better way?
Anyway, I get the same result with v2.13 b171 that I downloaded from here (fontversion: 139592(i)(s)
).
Seems like this is yet another difference between Word and LaTeX rendering. Pipe brackets (both single and double) are actually a touch too short in Word. I can also confirm that I'm getting similar results as @mdeff with XeLaTeX/LuaLaTeX (via Overleaf) and v2.13 b171.
Word 16 (a.k.a Office 365):
The height of delimiter variant to use is determined by the math layout engine, not directly by the font. It is derived from the overall height of the relevant stacked parts of the equation, but how that is interpreted by the layout engine and a variant selection made is often a bit of a black box from my perspective. And, as noted, not all math layout engines will produce the same results from the same input using the same font.
But this sort of situation where different delimiters are getting different heights around the same content is the sort of thing that suggests a font issue:
I've tried a bunch of delimiters:
Only ‖ is badly scaled.
⧼, ⧽, ⦑, and ⦒ are not scaled at all. (I've never seen them in mathematical texts, but they're mentioned on Wikipedia.)
In the v2.20, all delimiters now a) have the same set of 12 growing variants, b) are vertically centered on the max axis height, and c) are the same height as each other across the variant set. So, all else being equal, this issue should be fixed in b2.20.
Thanks for the quick fix! Looking forward to v2.20. 🙂
Updated sources and fonts delivered to STI Pub for testing. Issue reopened pending public release.
When ‖ is scaled to accommodate a subscripted letter, it looks too tall, compared to the angle brackets ⟨ and ⟩.
The following document, compiled with
latexmk -pdflua
, produces the following output.Compare with Cambria (i.e.,
\setmathfont{Cambria Math}
):And Latin Modern (i.e.,
\setmathfont{Latin Modern Math}
):