tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

stacks.py (2484B)


      1 #!/usr/bin/env python3
      2 
      3 from utils import mathfont
      4 import fontforge
      5 
      6 v1 = 5 * mathfont.em
      7 v2 = 1 * mathfont.em
      8 f = mathfont.create("stack-bottomdisplaystyleshiftdown%d-axisheight%d" % (v1, v2),
      9                    "Copyright (c) 2016 MathML Association")
     10 f.math.AxisHeight = v2
     11 f.math.StackBottomDisplayStyleShiftDown = v1
     12 f.math.StackBottomShiftDown = 0
     13 f.math.StackDisplayStyleGapMin = 0
     14 f.math.StackGapMin = 0
     15 f.math.StackTopDisplayStyleShiftUp = 0
     16 f.math.StackTopShiftUp = 0
     17 mathfont.save(f)
     18 
     19 v1 = 6 * mathfont.em
     20 v2 = 1 * mathfont.em
     21 f = mathfont.create("stack-bottomshiftdown%d-axisheight%d" % (v1, v2),
     22                    "Copyright (c) 2016 MathML Association")
     23 f.math.AxisHeight = v2
     24 f.math.StackBottomDisplayStyleShiftDown = 0
     25 f.math.StackBottomShiftDown = v1
     26 f.math.StackDisplayStyleGapMin = 0
     27 f.math.StackGapMin = 0
     28 f.math.StackTopDisplayStyleShiftUp = 0
     29 f.math.StackTopShiftUp = 0
     30 mathfont.save(f)
     31 
     32 v = 4 * mathfont.em
     33 f = mathfont.create("stack-displaystylegapmin%d" % v,
     34                    "Copyright (c) 2016 MathML Association")
     35 f.math.AxisHeight = 0
     36 f.math.StackBottomDisplayStyleShiftDown = 0
     37 f.math.StackBottomShiftDown = 0
     38 f.math.StackDisplayStyleGapMin = v
     39 f.math.StackGapMin = 0
     40 f.math.StackTopDisplayStyleShiftUp = 0
     41 f.math.StackTopShiftUp = 0
     42 mathfont.save(f)
     43 
     44 v = 8 * mathfont.em
     45 f = mathfont.create("stack-gapmin%d" % v,
     46                    "Copyright (c) 2016 MathML Association")
     47 f.math.AxisHeight = 0
     48 f.math.StackBottomDisplayStyleShiftDown = 0
     49 f.math.StackBottomShiftDown = 0
     50 f.math.StackDisplayStyleGapMin = 0
     51 f.math.StackGapMin = v
     52 f.math.StackTopDisplayStyleShiftUp = 0
     53 f.math.StackTopShiftUp = 0
     54 mathfont.save(f)
     55 
     56 v1 = 3 * mathfont.em
     57 v2 = 1 * mathfont.em
     58 f = mathfont.create("stack-topdisplaystyleshiftup%d-axisheight%d" % (v1, v2),
     59                    "Copyright (c) 2016 MathML Association")
     60 f.math.AxisHeight = v2
     61 f.math.StackBottomDisplayStyleShiftDown = 0
     62 f.math.StackBottomShiftDown = 0
     63 f.math.StackDisplayStyleGapMin = 0
     64 f.math.StackGapMin = 0
     65 f.math.StackTopDisplayStyleShiftUp = v1
     66 f.math.StackTopShiftUp = 0
     67 mathfont.save(f)
     68 
     69 v1 = 9 * mathfont.em
     70 v2 = 1 * mathfont.em
     71 f = mathfont.create("stack-topshiftup%d-axisheight%d" % (v1, v2),
     72                    "Copyright (c) 2016 MathML Association")
     73 f.math.AxisHeight = v2
     74 f.math.StackBottomDisplayStyleShiftDown = 0
     75 f.math.StackBottomShiftDown = 0
     76 f.math.StackDisplayStyleGapMin = 0
     77 f.math.StackGapMin = 0
     78 f.math.StackTopDisplayStyleShiftUp = 0
     79 f.math.StackTopShiftUp = v1
     80 mathfont.save(f)