mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
84
tests/wpt/web-platform-tests/mathml/tools/underover.py
Normal file
84
tests/wpt/web-platform-tests/mathml/tools/underover.py
Normal file
|
@ -0,0 +1,84 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from utils import mathfont
|
||||
import fontforge
|
||||
|
||||
breveCodePoint = 0x2D8 # accent operator
|
||||
degreeCodePoint = 0xB0 # nonaccent operator
|
||||
accentBaseHeight = 4 * mathfont.em
|
||||
|
||||
v = 3 * mathfont.em
|
||||
f = mathfont.create("underover-accentbaseheight%d-overbarextraascender%d" % (accentBaseHeight, v))
|
||||
mathfont.createSquareGlyph(f, breveCodePoint)
|
||||
mathfont.createSquareGlyph(f, degreeCodePoint)
|
||||
f.math.AccentBaseHeight = accentBaseHeight
|
||||
f.math.LowerLimitBaselineDropMin = 0
|
||||
f.math.LowerLimitGapMin = 0
|
||||
f.math.OverbarExtraAscender = v
|
||||
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("underover-accentbaseheight%d-overbarverticalgap%d" % (accentBaseHeight, v))
|
||||
mathfont.createSquareGlyph(f, breveCodePoint)
|
||||
mathfont.createSquareGlyph(f, degreeCodePoint)
|
||||
f.math.AccentBaseHeight = accentBaseHeight
|
||||
f.math.LowerLimitBaselineDropMin = 0
|
||||
f.math.LowerLimitGapMin = 0
|
||||
f.math.OverbarExtraAscender = 0
|
||||
f.math.OverbarVerticalGap = v
|
||||
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("underover-accentbaseheight%d-underbarextradescender%d" % (accentBaseHeight, v))
|
||||
mathfont.createSquareGlyph(f, breveCodePoint)
|
||||
mathfont.createSquareGlyph(f, degreeCodePoint)
|
||||
f.math.AccentBaseHeight = accentBaseHeight
|
||||
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 = v
|
||||
f.math.UnderbarVerticalGap = 0
|
||||
f.math.UpperLimitBaselineRiseMin = 0
|
||||
f.math.UpperLimitGapMin = 0
|
||||
mathfont.save(f)
|
||||
|
||||
v = 7 * mathfont.em
|
||||
f = mathfont.create("underover-accentbaseheight%d-underbarverticalgap%d" % (accentBaseHeight, v))
|
||||
mathfont.createSquareGlyph(f, breveCodePoint)
|
||||
mathfont.createSquareGlyph(f, degreeCodePoint)
|
||||
f.math.AccentBaseHeight = accentBaseHeight
|
||||
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 = v
|
||||
f.math.UpperLimitBaselineRiseMin = 0
|
||||
f.math.UpperLimitGapMin = 0
|
||||
mathfont.save(f)
|
Loading…
Add table
Add a link
Reference in a new issue