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
81
tests/wpt/web-platform-tests/mathml/tools/stacks.py
Normal file
81
tests/wpt/web-platform-tests/mathml/tools/stacks.py
Normal file
|
@ -0,0 +1,81 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from utils import mathfont
|
||||
import fontforge
|
||||
|
||||
v = 7 * mathfont.em
|
||||
f = mathfont.create("stack-axisheight%d" % v)
|
||||
f.math.AxisHeight = v
|
||||
f.math.StackBottomDisplayStyleShiftDown = 0
|
||||
f.math.StackBottomShiftDown = 0
|
||||
f.math.StackDisplayStyleGapMin = 0
|
||||
f.math.StackGapMin = 0
|
||||
f.math.StackTopDisplayStyleShiftUp = 0
|
||||
f.math.StackTopShiftUp = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 5 * mathfont.em
|
||||
f = mathfont.create("stack-bottomdisplaystyleshiftdown%d" % v)
|
||||
f.math.AxisHeight = 0
|
||||
f.math.StackBottomDisplayStyleShiftDown = v
|
||||
f.math.StackBottomShiftDown = 0
|
||||
f.math.StackDisplayStyleGapMin = 0
|
||||
f.math.StackGapMin = 0
|
||||
f.math.StackTopDisplayStyleShiftUp = 0
|
||||
f.math.StackTopShiftUp = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 6 * mathfont.em
|
||||
f = mathfont.create("stack-bottomshiftdown%d" % v)
|
||||
f.math.AxisHeight = 0
|
||||
f.math.StackBottomDisplayStyleShiftDown = 0
|
||||
f.math.StackBottomShiftDown = v
|
||||
f.math.StackDisplayStyleGapMin = 0
|
||||
f.math.StackGapMin = 0
|
||||
f.math.StackTopDisplayStyleShiftUp = 0
|
||||
f.math.StackTopShiftUp = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 4 * mathfont.em
|
||||
f = mathfont.create("stack-displaystylegapmin%d" % v)
|
||||
f.math.AxisHeight = 0
|
||||
f.math.StackBottomDisplayStyleShiftDown = 0
|
||||
f.math.StackBottomShiftDown = 0
|
||||
f.math.StackDisplayStyleGapMin = v
|
||||
f.math.StackGapMin = 0
|
||||
f.math.StackTopDisplayStyleShiftUp = 0
|
||||
f.math.StackTopShiftUp = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 8 * mathfont.em
|
||||
f = mathfont.create("stack-gapmin%d" % v)
|
||||
f.math.AxisHeight = 0
|
||||
f.math.StackBottomDisplayStyleShiftDown = 0
|
||||
f.math.StackBottomShiftDown = 0
|
||||
f.math.StackDisplayStyleGapMin = 0
|
||||
f.math.StackGapMin = v
|
||||
f.math.StackTopDisplayStyleShiftUp = 0
|
||||
f.math.StackTopShiftUp = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 3 * mathfont.em
|
||||
f = mathfont.create("stack-topdisplaystyleshiftup%d" % v)
|
||||
f.math.AxisHeight = 0
|
||||
f.math.StackBottomDisplayStyleShiftDown = 0
|
||||
f.math.StackBottomShiftDown = 0
|
||||
f.math.StackDisplayStyleGapMin = 0
|
||||
f.math.StackGapMin = 0
|
||||
f.math.StackTopDisplayStyleShiftUp = v
|
||||
f.math.StackTopShiftUp = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 9 * mathfont.em
|
||||
f = mathfont.create("stack-topshiftup%d" % v)
|
||||
f.math.AxisHeight = 0
|
||||
f.math.StackBottomDisplayStyleShiftDown = 0
|
||||
f.math.StackBottomShiftDown = 0
|
||||
f.math.StackDisplayStyleGapMin = 0
|
||||
f.math.StackGapMin = 0
|
||||
f.math.StackTopDisplayStyleShiftUp = 0
|
||||
f.math.StackTopShiftUp = v
|
||||
mathfont.save(f)
|
Loading…
Add table
Add a link
Reference in a new issue