/usr/share/pyshared/FontTools/fontTools/ttLib/tables/_f_p_g_m.py is in fonttools 2.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import DefaultTable
import array
import ttProgram
class table__f_p_g_m(DefaultTable.DefaultTable):
def decompile(self, data, ttFont):
program = ttProgram.Program()
program.fromBytecode(data)
self.program = program
def compile(self, ttFont):
return self.program.getBytecode()
def toXML(self, writer, ttFont):
self.program.toXML(writer, ttFont)
writer.newline()
def fromXML(self, (name, attrs, content), ttFont):
program = ttProgram.Program()
program.fromXML((name, attrs, content), ttFont)
self.program = program
def __len__(self):
return len(self.program)
|