def genGlyph(glyphName, generateFrom, force): # generateFrom = (baseName, accentNames, offset, rawline) if generateFrom is not None: generateGlyph(font, generateFrom[3], agl) g = font.getGlyph(glyphName) return glyphToSVG(g)
def generateGlyphs(f, glyphNames, glyphList={}): log(">> Generating diacritics") glyphnames = [ gname for gname in glyphNames if not gname.startswith("#") and gname != "" ] for glyphName in glyphNames: generateGlyph(f, glyphName, glyphList)
def generateGlyphs(f, glyphNames, glyphList={}): log(">> Generating diacritics") glyphnames = [gname for gname in glyphNames if not gname.startswith("#") and gname != ""] for glyphName in glyphNames: generateGlyph(f, glyphName, glyphList)