Google Fonts

Quality Assurance

🐯 Quality Assurance is an essential factor in Google Fonts. On the one hand, we expect the submitted fonts to follow the best standards and conventions of type design. On the other hand, committed to the understanding of fonts as software, we need to ensure that they fulfill the technical requirements of the major OS, applications, and browsers.

This chapter aims to guide designers to have a more automated approach of their binaries quality assurance. We recommend you install all the tools in a virtual environment, to avoid conflict between packages. Further information is detailed in the Tools and Dependencies section.

For the rest of this chapter, it would be better if you have basic knowledge of:
Background reading:
start Tools and Dependencies
must→ Overall font files requirements
learn Build the fonts

Table of contents

Tools

Checking the font tables

Beyond the visible outlines of a typeface, each font binary is composed of an ensemble of required tables. These tables store fundamental metadata for the font to transmit operating information to the different environments (OS, applications, browsers) and, therefore, for it to function properly in all of them.

Hence, it is important to inspect them to verify all the information is as expected. You can make use of the following tools:

Checking with Fontspector

Fontspector is our primary quality assurance testing tool. It is a Rust port of Fontbakery, which Google Fonts used previously, and runs the same kind of checks much faster. It helps to ensure that font projects are optimal and that the fonts are reliable before being delivered to users.

See the Tools and Dependencies section to install it. To check a few fonts without installing anything, you can also use the web version of Fontspector, which runs in your browser without uploading your fonts.

Log levels results

The check results are categorised according to levels of relevance, ranging from ERROR to SKIP. The icons used in the HTML and Markdown reports help to identify the severity. Be calm! There could be many of them. Get comfortable with receiving them and embrace them as a way to improve your font.

Profiles

Checks are separated into different collections called profiles (and a profile can include all or some checks from other profiles).

Main profiles are:

Proofing with Diffenator3

Diffenator3 is a Rust port of Diffenator2. It comes with two command-line tools:

To see all the available options, run diffenator3 --help or diff3proof --help. Install instructions are available in the Tools and Dependencies section and in the GitHub repository. Diffenator3 also has a web version to compare two fonts in your browser.

Using gftools QA

gftools qa wraps fontspector, diffenator3, diff3proof and an interpolation checker, which generates a PDF reporting interpolation issues in variable fonts.

From your fonts directory, you can run:

gftools qa -f *.ttf -a -o qa

Add -gfb (--googlefonts-before) if you want to have a diff with the previous version published on Google Fonts. The reports are written in the directory given with -o (out by default).

Outlines and type design

There are many standards and conventions established over centuries around the design and drawing of fonts. Providing a comprehensive list of them goes out of the scope of the current Guide.

However, you could:


Type Design Testing web pages:
Testing apps:
Further reading:
learn Local Testing
learn Outline quality
learn Diacritics requirements