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
Utilities for turning local font folders into indexed glyph datasets. |
|
Dataset utilities tailored to the official Google Fonts repository. |
|
Dataset wrapper that materializes fonts from remote Git repositories. |