def __init__(self, font, accentList): """several tools for working with anchors and building accents""" self.glyphConstructions = readGlyphConstructions() self.accentList = accentList self.anchorErrors = ['ANCHOR ERRORS:'] self.accentErrors = ['ACCENT ERRORS:'] self.font = font
from robofab.tools.toolsAll import readGlyphConstructions f = CurrentFont() import string theList = [ # caps 'AEacute', 'AEmacron', 'Aacute', 'Abreve', # add all the accents you want in this list ] con = readGlyphConstructions() theList.sort() def accentify(f, preflight=False): print 'start accentification', f.info.fullName slots = con.keys() slots.sort() for k in theList: if k[-3:] in [".sc"]: isSpecial = True tag = k[-3:] name = k[:-3] else: isSpecial = False tag = ""
def __init__(self): self.accentsContstruction = readGlyphConstructions() addObserver(self, "drawNeighbors", "drawBackground") addObserver(self, "drawPreviewNeighBors", "drawPreview") addObserver(self, "mouseDown", "mouseDown")
def __init__(self): self.accentsContstruction = readGlyphConstructions() addObserver(self, "drawNeightbors", "drawBackground") addObserver(self, "drawPreviewNeighBors", "drawPreview") addObserver(self, "mouseDown", "mouseDown")