def buildVarIdxMap(varIdxes, glyphOrder): self = ot.VarIdxMap() self.mapping = {g: v for g, v in zip(glyphOrder, varIdxes)} return self
def buildVarIdxMap(varIdxes): # TODO Change VarIdxMap mapping to hold separate outer,inner indices self = ot.VarIdxMap() self.mapping = list(varIdxes) return self