google-fonts-languages 0.7.7

Google Fonts script and language support data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
from gflanguages import LoadLanguages, parse

script = "Latn"
languages = LoadLanguages()
latin_languages = [lang for lang in languages.values() if lang.script == script]
sets = [
    set(parse(lang.exemplar_chars.base))
    for lang in latin_languages
    if len(parse(lang.exemplar_chars.base)) > 1
]
print(sets)
intersection = set.intersection(*sets)
print(script, intersection)