pybadges/precalculate_text.py
def generate_supported_characters(deja_vu_sans_path: str) -> Iterable[str]:
    """Generate the characters support by the font at the given path."""
    font = ttLib.TTFont(deja_vu_sans_path)
    for cmap in font['cmap'].tables:
        if cmap.isUnicode():
            for code in cmap.cmap:
                yield chr(code)
def generate_supported_characters(deja_vu_sans_path: str) -> Iterable[str]:
    """Generate the characters support by the font at the given path."""
    font = ttLib.TTFont(deja_vu_sans_path)
    for cmap in font['cmap'].tables:
        if cmap.isUnicode():
            for code in cmap.cmap:
                yield chr(code)
def generate_supported_characters ( deja_vu_sans_path : str ) -> Iterable [ str ] : font = ttLib . TTFont ( deja_vu_sans_path ) for cmap in font [ 'cmap' ] . tables : if cmap . isUnicode ( ) : for code in cmap . cmap : yield chr ( code )
Generate the characters support by the font at the given path.
Generate the characters support by the font at the given path .