def empty_font(): font = TTFont() font.glyphOrder = [] indextable = table_T_S_I__0() indextable.set([], [(0xFFFA, 0, 0), (0xFFFB, 0, 0), (0xFFFC, 0, 0), (0xFFFD, 0, 0)]) font['TSI0'] = indextable return font
def empty_font(): font = TTFont() font.glyphOrder = [] indextable = table_T_S_I__0() indextable.set([], [(0xFFFA, 0, 0), (0xFFFB, 0, 0), (0xFFFC, 0, 0), (0xFFFD, 0, 0)]) font['TSI0'] = indextable return font
def indextable(): table = table_T_S_I__0() table.set( [(0, 1, 0), # gid 0, length=1, offset=0, text='a' (1, 5, 1), # gid 1, length=5, offset=1, text='bcdef' (2, 0, 1), # gid 2, length=0, offset=1, text='' (3, 0, 1), # gid 3, length=0, offset=1, text='' (4, 8, 6)], # gid 4, length=8, offset=6, text='ghijklmn' [(0xFFFA, 2, 14), # 'ppgm', length=2, offset=14, text='op' (0xFFFB, 4, 16), # 'cvt', length=4, offset=16, text='qrst' (0xFFFC, 6, 20), # 'reserved', length=6, offset=20, text='uvxywz' (0xFFFD, 10, 26)] # 'fpgm', length=10, offset=26, text='0123456789' ) return table
def indextable(): table = table_T_S_I__0() table.set( [ (0, 1, 0), # gid 0, length=1, offset=0, text='a' (1, 5, 1), # gid 1, length=5, offset=1, text='bcdef' (2, 0, 1), # gid 2, length=0, offset=1, text='' (3, 0, 1), # gid 3, length=0, offset=1, text='' (4, 8, 6) ], # gid 4, length=8, offset=6, text='ghijklmn' [ (0xFFFA, 2, 14), # 'ppgm', length=2, offset=14, text='op' (0xFFFB, 4, 16), # 'cvt', length=4, offset=16, text='qrst' (0xFFFC, 6, 20), # 'reserved', length=6, offset=20, text='uvxywz' (0xFFFD, 10, 26) ] # 'fpgm', length=10, offset=26, text='0123456789' ) return table
def table(): return table_T_S_I__0()
def table(): return table_T_S_I__0()