Use Google Fonts for Machine Learning (Part 2: Filter & Generate)

Quickly generate hundreds of font images.

Machine learning training time-lapse
Machine learning training time-lapse. Image by Author.

Directory Setup

├── input
│ ├── fonts
│ │ ...
│ │ ├── ofl
│ │ ...
│ ├── fonts-master.json
└── notebook
└── google-fonts-ml
├── google-fonts-ml.ipynb
└── google-fonts-annotaion.csv

Load CSV Annotations

Look at Data Summary

Filtering Fonts

Some Caveats

Load Font File Path

number of font files in total:  8708

Filter Fonts

Preview Font Images

It’s working! Images by Author.

Everything Pieced Together


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store