mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d
This commit is contained in:
parent
65dd6d4340
commit
ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions
74
tests/wpt/web-platform-tests/mathml/tools/limits.py
Normal file
74
tests/wpt/web-platform-tests/mathml/tools/limits.py
Normal file
|
@ -0,0 +1,74 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from utils import mathfont
|
||||
import fontforge
|
||||
|
||||
nArySumCodePoint = 0x2211 # largeop operator
|
||||
|
||||
v = 3 * mathfont.em
|
||||
f = mathfont.create("limits-lowerlimitbaselinedropmin%d" % v)
|
||||
mathfont.createSquareGlyph(f, nArySumCodePoint)
|
||||
f.math.LowerLimitBaselineDropMin = v
|
||||
f.math.LowerLimitGapMin = 0
|
||||
f.math.OverbarExtraAscender = 0
|
||||
f.math.OverbarVerticalGap = 0
|
||||
f.math.StretchStackBottomShiftDown = 0
|
||||
f.math.StretchStackGapAboveMin = 0
|
||||
f.math.StretchStackGapBelowMin = 0
|
||||
f.math.StretchStackTopShiftUp = 0
|
||||
f.math.UnderbarExtraDescender = 0
|
||||
f.math.UnderbarVerticalGap = 0
|
||||
f.math.UpperLimitBaselineRiseMin = 0
|
||||
f.math.UpperLimitGapMin = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 11 * mathfont.em
|
||||
f = mathfont.create("limits-lowerlimitgapmin%d" % v)
|
||||
mathfont.createSquareGlyph(f, nArySumCodePoint)
|
||||
f.math.LowerLimitBaselineDropMin = 0
|
||||
f.math.LowerLimitGapMin = v
|
||||
f.math.OverbarExtraAscender = 0
|
||||
f.math.OverbarVerticalGap = 0
|
||||
f.math.StretchStackBottomShiftDown = 0
|
||||
f.math.StretchStackGapAboveMin = 0
|
||||
f.math.StretchStackGapBelowMin = 0
|
||||
f.math.StretchStackTopShiftUp = 0
|
||||
f.math.UnderbarExtraDescender = 0
|
||||
f.math.UnderbarVerticalGap = 0
|
||||
f.math.UpperLimitBaselineRiseMin = 0
|
||||
f.math.UpperLimitGapMin = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 5 * mathfont.em
|
||||
f = mathfont.create("limits-upperlimitbaselinerisemin%d" % v)
|
||||
mathfont.createSquareGlyph(f, nArySumCodePoint)
|
||||
f.math.LowerLimitBaselineDropMin = 0
|
||||
f.math.LowerLimitGapMin = 0
|
||||
f.math.OverbarExtraAscender = 0
|
||||
f.math.OverbarVerticalGap = 0
|
||||
f.math.StretchStackBottomShiftDown = 0
|
||||
f.math.StretchStackGapAboveMin = 0
|
||||
f.math.StretchStackGapBelowMin = 0
|
||||
f.math.StretchStackTopShiftUp = 0
|
||||
f.math.UnderbarExtraDescender = 0
|
||||
f.math.UnderbarVerticalGap = 0
|
||||
f.math.UpperLimitBaselineRiseMin = v
|
||||
f.math.UpperLimitGapMin = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 7 * mathfont.em
|
||||
f = mathfont.create("limits-upperlimitgapmin%d" % v)
|
||||
mathfont.createSquareGlyph(f, nArySumCodePoint)
|
||||
f.math.LowerLimitBaselineDropMin = 0
|
||||
f.math.LowerLimitGapMin = 0
|
||||
f.math.OverbarExtraAscender = 0
|
||||
f.math.OverbarVerticalGap = 0
|
||||
f.math.StretchStackBottomShiftDown = 0
|
||||
f.math.StretchStackGapAboveMin = 0
|
||||
f.math.StretchStackGapBelowMin = 0
|
||||
f.math.StretchStackTopShiftUp = 0
|
||||
f.math.UnderbarExtraDescender = 0
|
||||
f.math.UnderbarVerticalGap = 0
|
||||
f.math.UpperLimitBaselineRiseMin = 0
|
||||
f.math.UpperLimitGapMin = v
|
||||
mathfont.save(f)
|
Loading…
Add table
Add a link
Reference in a new issue