Esempio n. 1
0
 def extract(self, path):
     fileFormat = extractor.extractFormat(path)
     app = QApplication.instance()
     data = dict(
         font=self,
         format=fileFormat,
     )
     app.postNotification("fontWillExtract", data)
     extractor.extractUFO(path, self, fileFormat)
Esempio n. 2
0
    def extract(self, path):
        import extractor

        fileFormat = extractor.extractFormat(path)
        app = QApplication.instance()
        data = dict(font=self, format=fileFormat)
        app.postNotification("fontWillExtract", data)
        extractor.extractUFO(path, self, fileFormat)
        for glyph in self:
            glyph.dirty = False
Esempio n. 3
0
 def extract(self, path):
     import extractor
     fileFormat = extractor.extractFormat(path)
     app = QApplication.instance()
     data = dict(
         font=self,
         format=fileFormat,
     )
     app.postNotification("fontWillExtract", data)
     extractor.extractUFO(path, self, fileFormat)
     for glyph in self:
         glyph.dirty = False
     self.dirty = False
     self._binaryPath = path
Esempio n. 4
0
    def extract(self, path):
        import extractor

        fileFormat = extractor.extractFormat(path)
        app = QApplication.instance()
        data = dict(font=self, format=fileFormat)
        app.postNotification("fontWillExtract", data)
        # don't bring on UndoManager just yet
        func = self.newGlyph
        try:
            self.newGlyph = types.MethodType(Font.newGlyph, self)
            extractor.extractUFO(path, self, fileFormat)
            for glyph in self:
                glyph.dirty = False
                glyph.undoManager = UndoManager(glyph)
        finally:
            self.newGlyph = func
        self.dirty = False
        self._binaryPath = path