Changeset 373


Ignore:
Timestamp:
01/25/09 23:32:03 (4 years ago)
Author:
tal
Message:
Typing some features is now noticed. Save as now works.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/Area51/trunk/Lib/area51Lib/interface/documentWindow.py

    r363 r373  
    5959                ), 
    6060        ] 
    61          
     61 
    6262        self.w.addToolbar(toolbarIdentifier="Area51DocumentToolbar", toolbarItems=items, addStandardItems=False) 
    6363 
     
    101101 
    102102        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) 
    104104 
    105105        # ------------------ 
     
    134134            self.w.tabs.set(1) 
    135135 
     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 
    136147    # ------ 
    137148    # Glyphs 
     
    149160        glyphs = sender.get() 
    150161        self.glyphLineView.set(glyphs) 
     162 
     163    # -------- 
     164    # Features 
     165    # -------- 
     166 
     167    def featureTextEditCallback(self, sender): 
     168        self.font.features.text = sender.get() 
    151169 
    152170    # ----------- 
     
    181199            glyphOrder = self.font.unicodeData.sortGlyphNames(self.font.keys(), compileOTFSortDescriptors) 
    182200            # compile 
    183             compiler = ufo2fdk.OTFCompiler(savePartsNextToUFO=True) 
    184             compiler = ufo2fdk.OTFCompiler(savePartsNextToUFO=True) 
     201            compiler = ufo2fdk.OTFCompiler(savePartsNextToUFO=False) 
    185202            reports = compiler.compile(self.font, path, checkOutlines=checkOutlines, autohint=autohint, releaseMode=releaseMode, progressBar=progress) 
    186203            # close the progress sheet 
Note: See TracChangeset for help on using the changeset viewer.