Open Bug 1187682 Opened 6 years ago Updated 1 year ago
Percent Scale Down and Script Script Percent Scale Down constants instead of scriptsizemultiplier
47 bytes, text/x-phabricator-request
|Details | Review|
This might be a bit controversial, but I open this for the record. The MathML spec says that the font-size scaling factor when incrementing the script level is scriptsizemultiplier, with default value 0.71 The OpenType MATH table contains two scaling values for script levels 1 and 2, that we currently do not use: - ScriptPercentScaleDown Percentage of scaling down for script level 1. Suggested value: 80%. - ScriptScriptPercentScaleDown Percentage of scaling down for script level 2 (ScriptScript). Suggested value: 60%. Currently, we always use scriptsizemultiplier but I wonder whether in some situation we should prefer the OpenType MATH constants as they are closer the the font designer's intention. For Latin Modern Math, we have ScriptPercentScaleDown = 70% and ScriptScriptPercentScaleDown = 50%. The spec does not seem to say whether these percentages are relative to the base size or the current size. If this is the former then the MathML values .71 and .71^2=0.5041 should already be close to the values from the OpenType MATH table, so the difference will not be significant.
(Just mentioning: I opened this after Wikipedia's issue https://phabricator.wikimedia.org/T106890#1483191) Khaled: Do you know more about the interpretation of ScriptScriptPercentScaleDown (i.e. is it relative to scriptlevel=0 size or to the scriptlevel=1 size?)
I think both values should be relative to the base size, that is how I interpreted them and it seems to be what MS implementation is doing IIRC.
(In reply to Khaled Hosny from comment #2) > I think both values should be relative to the base size, that is how I > interpreted them and it seems to be what MS implementation is doing IIRC. Thanks. In that case for Latin Modern Math the values 70% and 50% should be essentially the same as .71 and .71^2=0.5041 given by scriptsizemultiplier
Attachment #9178236 - Attachment description: Bug 1187682 - Use ScriptPercentScaleDown and ScriptScriptPercentScaleDown constants → Bug 1187682 - Use ScriptPercentScaleDown and ScriptScriptPercentScaleDown constants. r=emilio
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/20fadec3e9dc Use ScriptPercentScaleDown and ScriptScriptPercentScaleDown constants. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/25948 for changes under testing/web-platform/tests
Upstream PR was closed without merging
You need to log in before you can comment on or make changes to this bug.