def makeCharacterSet(font):
    cmap = font["cmap"]
    table = cmap.getcmap(3, 1)
    mapping = table.cmap
    categorizedCharacters = {}
    glyphNameToCharacter = {}
    for value, glyphName in sorted(mapping.items()):
        character = unichr(value)
        # skip whitespace
        if not character.strip():
            continue
        if glyphName not in glyphNameToCharacter:
            glyphNameToCharacter[glyphName] = []
        glyphNameToCharacter[glyphName].append(character)
    # use the glyph order defined in the font
    sortedCharacters = []
    for glyphName in font.getGlyphOrder():
        if glyphNameToCharacter in glyphName:
            sortedCharacters += glyphNameToCharacter[glyphName]
    return u"".join(sortedCharacters)

# ---------------
# Public Function
# ---------------
dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/tools/proof.py/makeCharacterSet/swapped operands of `in`