Example #1
0
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)
Example #2
0
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)
Example #3
0
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)