Skip to main content

A python API for evaluating language support in the Google Fonts collection.

Project description

This python module provides an API with data about languages/regions/scripts for use in the language-support categorization of the font families in the Google Fonts collection.

You can also directly access the raw textproto files on the Lib/gflanguages/data directory:

Most of the code in this project was copied from the gftools repository (https://github.com/googlefonts/gftools/) so that language/region/script data can be easily available to all our tools without having to also get the large dependency tree of gftools. The most immediate user of this module is Font Bakery, which needs to validate language support on font binaries being checked. (see https://github.com/googlefonts/fontbakery/issues/3605)

The second obvious user of this gflanguages module is gftools itself.

Language/region/script definitions and the gflanguages modules are used as a subtree in the google/fonts repo, on its lang/ directory (https://github.com/google/fonts/tree/main/lang).

This module is the main place to update these definitions, avoiding data duplication and guaranteeing uniformity across tools.

To learn more about how lang metadata affects downstream, see gf-guide/lang.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gflanguages-0.6.3.tar.gz (796.7 kB view details)

Uploaded Source

Built Distribution

gflanguages-0.6.3-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file gflanguages-0.6.3.tar.gz.

File metadata

  • Download URL: gflanguages-0.6.3.tar.gz
  • Upload date:
  • Size: 796.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.5

File hashes

Hashes for gflanguages-0.6.3.tar.gz
Algorithm Hash digest
SHA256 d744a6703511affdad783c265859a17872e574c80670c83352b7312e16f5ea9d
MD5 d84602f07f3622ddcc1e42c871962aba
BLAKE2b-256 1a211c70820f69f60c9fd1babb8199f4b6e86ba47b3a7d4d01370458c2e67d5a

See more details on using hashes here.

File details

Details for the file gflanguages-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: gflanguages-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.5

File hashes

Hashes for gflanguages-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 15a99a0e11a7b4fab01220bf5d92a525010b6d6b74bc6d241c6913f87da66d38
MD5 91c54ab07c8373c21bdbecb729d6391d
BLAKE2b-256 cda56175aabe49b365e2b0c4653663f6d2a4bb01a113ec41613888d4b4915cdb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page