def delete_from_cmap(font, chars):
    cmap_table = font['cmap']
    for table in cmap_table.tables:
        if (table.format, table.platformID, table.platEncID) in UNICODE_CMAPS:
            for char in chars:
                if char in table.cmap:
                    del table.cmap[char]
Delete all characters in a list from the cmap tables of a font.
dataset/ETHPy150Open googlei18n/nototools/nototools/font_data.py/delete_from_cmap