torchfont.datasetsΒΆ

Dataset utilities that turn font files into model-ready glyph samples.

Examples

Mirror the Google Fonts index into a training dataset:

from torchfont.datasets import GoogleFonts

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

Modules

folder

Utilities for turning local font folders into indexed glyph datasets.

google_fonts

Dataset utilities tailored to the official Google Fonts repository.

repo

Dataset wrapper that materializes fonts from remote Git repositories.