def getGlyphName(self, codePoint): # if codePoint is None: # return '.notdef' import UnicodeCharacterNames name = UnicodeCharacterNames.getUnicodeCharacterName(codePoint) return name
def insertGlyphDerivedFromGlyph(self, codePoint, contours, srcGlyph): import UnicodeCharacterNames name = UnicodeCharacterNames.getUnicodeCharacterName(codePoint) glyph = TFSGlyph(self.rffont.newGlyph(name)) glyph.updateDerivedFromGlyph(codePoint, contours, srcGlyph)