def save1(self, filename):

        self.compile()

        # font data
        self.bitmap.save(os.path.splitext(filename)[0] + ".pbm", "PNG")

        # font metrics
        fp = open(os.path.splitext(filename)[0] + ".pil", "wb")
        fp.write("PILfont\n")
        fp.write(";;;;;;%d;\n" % self.ysize) # HACK!!!
        fp.write("DATA\n")
        for id in range(256):
            m = self.metrics[id]
            if not m:
                puti16(fp, [0] * 10)
            else:
                puti16(fp, m[0] + m[1] + m[2])
        fp.close()
Constructor.
dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/site-packages/PIL/FontFile.py/FontFile.save1--crossover with--dataset/ETHPy150Open rietveld-codereview/rietveld/codereview/library.py/NicknameNode.__init__