Use Google Fonts for Machine Learning (Part 1: Annotation)

Filter the fonts you need out of thousands of Google Fonts

Google Fonts images generated from a Python script
Google Fonts images generated from a Python script
Google Fonts images generated from a Python script. Image by Author.
A quick experiment with GAN trained on Google Fonts
A quick experiment with GAN trained on Google Fonts
A quick experiment with GAN trained on Google Fonts. Image by Author.

Download Google Fonts and JSON Annotations

> git clone https://github.com/google/fonts.git

Setup Jupyter Notebook

Load JSON Annotations

data.loc[data.family == 'Encode Sans']

Clean Up and Encode Data

Export as CSV File

df.to_csv('google-fonts-annotaion.csv', index=False)

What‘s Next

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