Changeset 373
- Timestamp:
- 01/25/09 23:32:03 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/Area51/trunk/Lib/area51Lib/interface/documentWindow.py
r363 r373 59 59 ), 60 60 ] 61 61 62 62 self.w.addToolbar(toolbarIdentifier="Area51DocumentToolbar", toolbarItems=items, addStandardItems=False) 63 63 … … 101 101 102 102 self.featuresTab = self.w.tabs[1] 103 self.featuresTab.featureEditor = FeatureTextEditor((0, 0, -0, -0), font.features.text )103 self.featuresTab.featureEditor = FeatureTextEditor((0, 0, -0, -0), font.features.text, callback=self.featureTextEditCallback) 104 104 105 105 # ------------------ … … 134 134 self.w.tabs.set(1) 135 135 136 def filePathChangedByUser(self): 137 # this handles file name 138 # changes in the finder 139 document = self.w.getNSWindow().document() 140 if document is None: 141 return 142 path = document.fileURL().path() 143 if path != self.font.path: 144 # set the path in the font 145 self.font.path = path 146 136 147 # ------ 137 148 # Glyphs … … 149 160 glyphs = sender.get() 150 161 self.glyphLineView.set(glyphs) 162 163 # -------- 164 # Features 165 # -------- 166 167 def featureTextEditCallback(self, sender): 168 self.font.features.text = sender.get() 151 169 152 170 # ----------- … … 181 199 glyphOrder = self.font.unicodeData.sortGlyphNames(self.font.keys(), compileOTFSortDescriptors) 182 200 # compile 183 compiler = ufo2fdk.OTFCompiler(savePartsNextToUFO=True) 184 compiler = ufo2fdk.OTFCompiler(savePartsNextToUFO=True) 201 compiler = ufo2fdk.OTFCompiler(savePartsNextToUFO=False) 185 202 reports = compiler.compile(self.font, path, checkOutlines=checkOutlines, autohint=autohint, releaseMode=releaseMode, progressBar=progress) 186 203 # close the progress sheet
Note: See TracChangeset
for help on using the changeset viewer.
