torchfont.datasetsΒΆ

Dataset utilities for loading glyph samples from font files.

Examples

Build a dataset sourced from the Google Fonts index:

from torchfont.datasets import GoogleFonts
ds = GoogleFonts(root="data/google_fonts", ref="main", download=True)

Modules

folder

Font folder dataset utilities for glyph loading and indexing.

google_fonts

Dataset utilities for working with the Google Fonts repository.

repo

Dataset wrapper that materializes fonts from remote Git repositories.