You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect baseline and size for U+2032 (prime) #42
I suspect this is some MATH table weirdness. When used outside of a math typesetting environment, then both Noto and Stix look reasonable and similarly proportioned:
It's probably something to do with the ScriptPercentScaleDown constant or something similar, but I don't have enough math typesetting understanding to know which value is causing this, and certainly not to fiddle with it.
The ssty feature substitutes the form of the glyph to be scaled down, if available. Not all characters get ssty variants, so one thing to check is whether this symbol does in the Noto Math font. If not, it may end up too small when scaled for subscript positioning.
As I recall, there are a couple of data points in the MATH table that determine the default scaling for superscripts and for their height position.
To elaborate, in Unicode primes are scaled down and positioned at superscript position, in Computer Modern they were drawn full size and on the baseline and TeX input handles prime as a superscript character so it gets scaled down and positioned the same like any other superscript. The trick in OpenType MATH fonts is to design the default glyph as it is now, and add ssty variant(s) that are full size on the baseline so that when used as superscript it does not get double scaled down.
Activity
simoncozens commentedon May 3, 2023
I suspect this is some MATH table weirdness. When used outside of a math typesetting environment, then both Noto and Stix look reasonable and similarly proportioned:
It's probably something to do with the
ScriptPercentScaleDownconstant or something similar, but I don't have enough math typesetting understanding to know which value is causing this, and certainly not to fiddle with it.simoncozens commentedon May 3, 2023
@khaledhosny or @tiroj, any quick thoughts?
khaledhosny commentedon May 3, 2023
This is handled by the
sstyfeaturetiroj commentedon May 3, 2023
The ssty feature substitutes the form of the glyph to be scaled down, if available. Not all characters get ssty variants, so one thing to check is whether this symbol does in the Noto Math font. If not, it may end up too small when scaled for subscript positioning.
As I recall, there are a couple of data points in the MATH table that determine the default scaling for superscripts and for their height position.
khaledhosny commentedon May 3, 2023
To elaborate, in Unicode primes are scaled down and positioned at superscript position, in Computer Modern they were drawn full size and on the baseline and TeX input handles prime as a superscript character so it gets scaled down and positioned the same like any other superscript. The trick in OpenType MATH fonts is to design the default glyph as it is now, and add
sstyvariant(s) that are full size on the baseline so that when used as superscript it does not get double scaled down.