def build_reverse_cmap(font): """Build a dictionary mapping glyph names to unicode values. Maps each name to its smallest unicode value. """ cmap_items = summary.get_largest_cmap(font).items() return {n: v for v, n in reversed(sorted(cmap_items))}
def build_reverse_cmap(font): """Build a dictionary mapping glyph names to unicode values. Maps each name to its smallest unicode value. """ cmap_items = summary.get_largest_cmap(font).items() return {n: v for v, n in reversed(sorted(cmap_items))}
def build_reverse_cmap(font): """Build a dictionary mapping glyph names to unicode values.""" return {n: v for v, n in summary.get_largest_cmap(font).items()}