π¦ google/fonts is the GitHub repository that is used as a staging area to upload font families to Google Fonts. The first step to contributing your font to Google Fonts is to submit your contribution as a Pull Request to google/fonts. This section will help users understand which are the directories, files, and python modules included in the Google/Fonts repository and how they are related.
.
βββ AUTHORS
βββ CODE_OF_CONDUCT.md
βββ CONTRIBUTING.md
βββ CONTRIBUTORS
βββ README.md
βββ TRIVIA.md
βββ apache
βββ axisregistry
βββ catalog
βββ knowledge
βββ lang
βββ ofl
βββ ufl
βββ to_production.txt
βββ to_sandbox.txt
TheΒ ofl
,Β ufl
Β andΒ apache
Β directories contain font families. There is a directory per family published by GF and each directory has the following structure:
.
βββ DESCRIPTION.en_us.html
βββ METADATA.pb
βββ License (OFL.txt, UFL.txt, License.txt)
βββ FontFamily-Regular.ttf
βββ upstream.yaml
Each file has the following purpose:
If the family is a variable font family, another directory called static
can be included to contain the static (non-variable) fonts for the family:
.
βββ DESCRIPTION.en_us.html
βββ METADATA.pb
βββ License (OFL.txt, UFL.txt, License.txt)
βββ FontFamily[axis].ttf
βββ static
β βββ FontFamily-Regular.ttf
β βββ FontFamily-Bold.ttf
βββ upstream.yaml
This static directory is mandatoryΒ if the static fonts are manually hinted; otherwise, it should not be added at all.
.
βββ info.pb
βββ bio.html
βββ image.png
Each credited entity on Google Fonts should have a registered profile in google/fonts/catalog/designers. This profile appears in the about section of the specimen page.
You can request the addition or modification of your name, bio, and image using this form.
Find more information about the requirements for these files in the designer profile chapter.
Google Fonts supports all theΒ Microsoft registered axes for variable fonts, but it has its own Axis Registry, which defines the names and ranges of additional axes supported by the API. This registry is used to generate the static instances of each variable family (which you can find in the downloadable zip file); the API will generate only those locations registered in the registry.
This python module provides the API with data about languages/regions/scripts for use in the language-support categorization of the font families in the Google Fonts collection.
As with the axis registry, the Lang directory also has its own repository, and all issues related to language data should be opened there.
to_sandbox.txt
is a list of font directories or designer directories to be pushed to sandbox.to_production.txt
is a list of fonts directories or designer directories to be pushed to production. Once the elements (fonts, bio, etc) have been checked and validated in sandbox, they can be sent to the API so users can have access to them. We can only push to production something that was first pushed to sandbox.