torchfont.datasets.google_fontsΒΆ

Dataset utilities for working with the Google Fonts repository.

Examples

Assemble a dataset backed by the live Google Fonts index:

ds = GoogleFonts(root="data/google_fonts", ref="main", download=True)
Resources:

The repository layout and licensing details can be explored at https://github.com/google/fonts.

Classes

GoogleFonts(root, ref, *[, patterns, ...])

Dataset that materializes glyph samples from the Google Fonts project.