• Home
  • Raw
  • Download

Lines Matching refs:layerName

667 		layerNames = [layerName for layerName, directoryName in layerContents]
680 for layerName, layerDirectory in layerContents:
682 return layerName
686 def getGlyphSet(self, layerName=None, validateRead=None, validateWrite=None): argument
705 if layerName is None:
706 layerName = self.getDefaultLayerName(validate=validateRead)
710 if layerName == storedLayerName:
714 raise UFOLibError("No glyphs directory is mapped to \"%s\"." % layerName)
729 def getCharacterMapping(self, layerName=None, validate=None): argument
736 glyphSet = self.getGlyphSet(layerName, validateRead=validate, validateWrite=True)
1401 for layerName in layerOrder:
1402 if layerName is None:
1403 layerName = DEFAULT_LAYER_NAME
1404 newOrder.append(layerName)
1410 layerContents = [(layerName, self.layerContents[layerName]) for layerName in layerOrder]
1413 def _findDirectoryForLayerName(self, layerName): argument
1416 if layerName is None and directoryName == DEFAULT_GLYPHS_DIRNAME:
1419 elif existingLayerName == layerName:
1423 raise UFOLibError("Could not locate a glyph set directory for the layer named %s." % layerName)
1428 layerName=None, argument
1459 and (not defaultLayer or layerName is not None)
1465 if layerName is None and defaultLayer:
1468 layerName = existingLayerName
1469 if layerName is None:
1470 layerName = DEFAULT_LAYER_NAME
1471 elif layerName is None and not defaultLayer:
1485 layerName=layerName,
1516 layerName=None, argument
1529 if existingLayerName != layerName:
1534 elif existingLayerName == layerName:
1537 if layerName in self.layerContents:
1538 directory = self.layerContents[layerName]
1547 directory = userNameToFileName(layerName, existing=existing, prefix="glyphs.")
1551 self.layerContents[layerName] = directory
1562 def renameGlyphSet(self, layerName, newLayerName, defaultLayer=False): argument
1576 if layerName == newLayerName:
1578 if self.layerContents[layerName] != DEFAULT_GLYPHS_DIRNAME and not defaultLayer:
1581 if self.layerContents[layerName] == DEFAULT_GLYPHS_DIRNAME and defaultLayer:
1593 oldDirectory = self._findDirectoryForLayerName(layerName)
1600 del self.layerContents[layerName]
1605 def deleteGlyphSet(self, layerName): argument
1613 foundDirectory = self._findDirectoryForLayerName(layerName)
1615 del self.layerContents[layerName]