Contains scripts to scrape (non-offsite) free fonts from fontsquirrel.com and create a dataset of 1024x1024px images showcasing the font
Downloads fonts (.zip containing .ttf/.otf) into the fontfiles
folder
python download_fonts.py --url https://www.fontsquirrel.com/fonts/list/classification/sans%20serif --start 1 --end 2
--url https://www.fontsquirrel.com/fonts/list/classification/sans%20serif
Url of the page that has list of downloadable fonts
--start 1
Page number to start scraping from
--end 2
Last page number to scrape
open *zip
(unarchiver mac)unzip '*.zip'
(linux)
Creates images (.jpg) for all fonts (or a single font) and saves it in the imgs
folder
python draw_fonts.py
--f fontfiles/OpenSans-Semibold.ttf
Creates image for only the requested font
pip install requests beautifulsoup4 pillow tqdm
Because wikipedia.org/Hamburgevons
Refer fontsquirrel.com/faq