images of all Google Fonts
CLI tool to render images of each primary font of a font family from Google Fonts.
hb-view CLI tool to render samples at the desired PPM.https://twardoch.github.io/googlefonts-images/img/17/roboto.pnghttps://github.com/google/fonts/tree/main/apache/roboto in the above example.Needs macOS, perhaps also works on Linux.
brew install harfbuzz or install harfbuzz on Linux.brew install python or install Python 3.9 or newer on Linux.python3 -m pip install -r requirements.txtusage: ./build_images.py [-h] -f folder [-i folder] [-p int]
Takes a folder of Google Fonts and builds images
optional arguments:
-h, --help show this help message and exit
-f folder, --fonts folder
Folder with the local copy of https://github.com/google/fonts
-i folder, --images folder
Folder in which the images will be written.
-p int, --ppm int PPM size at which the images will be rendered.