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)
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
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
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