def _fakeEditor():
        from fontio3.glyf import glyf, ttsimpleglyph

        e = utilities.fakeEditor(0x10000)
        e.glyf = glyf.Glyf()
        e.glyf[40] = ttsimpleglyph._testingValues[2]
        return e
Example #2
0
 def _fakeEditor():
     from fontio3.head import head
     from fontio3.glyf import glyf, ttsimpleglyph
     
     e = utilities.fakeEditor(200)
     e.glyf = glyf.Glyf()
     e.glyf[40] = ttsimpleglyph._testingValues[2]
     e.head = head.Head()
     return e
Example #3
0
    def _fakeEditor():
        from fontio3 import hmtx
        from fontio3.glyf import glyf, ttsimpleglyph

        e = utilities.fakeEditor(0x10000)
        e.glyf = glyf.Glyf()
        e.glyf[40] = ttsimpleglyph._testingValues[2]
        e.hmtx = hmtx.Hmtx()
        e.hmtx[5] = hmtx.MtxEntry(2000, 50)
        e.hmtx[12] = hmtx.MtxEntry(2100, 40)
        e.hmtx[40] = hmtx.MtxEntry(0, 30)
        return e