This is a python script, that helps you with inspecting and downloading all weights of a font which is hosted on a website.
Read the instructions, to learn how to use it.

-
Download and install Termux from here. You'll also need to have Python language installed and also have
requestsandcoloramalibraries for it. Read here to learn how to install these libraries. -
Run codes below in Termux:
pkg install python pip install requests pip install colorama termux-setup-storage cd /path/to/code python Font-Downloader.py -
In the 1st input you need to define at what speed you want the script to inspect font weights. Speed
1is approximately 4 times faster than Speed2; as a result it will be less accurate. -
In the 2nd input, you need to enter the font name to save font files as.
-
In the 3rd input, you need to enter the font file Direct or Pattern URL. Find a font file URL in a website and enter it. You may use these variables to create the pattern URL yourself.
{WEIGHT}: Thin, Regular, Bold ... {FORMAT}: eot, ttf, woff2 ...Example:
Direct: https://example.com/fonts/Arial/woff2/Arial-Bold.woff2 Pattern: https://example.com/fonts/Arial/{FORMAT}/Arial-{WEIGHT}.{FORMAT} -
For the 4th input, you need to enter the weight names case according to your inspections. If you haven't inspected, enter
alland it will test everything.'s' for Standard case (25-120 weight names) 'l' for Lower case (17-70 weight names) 'u' for Upper case (17-70 weight names) 'all' for All cases (59-260 weight names)You can combine letters for combined cases. like
luto have Lower and Upper cases. -
Now you're done. Just wait to finish the inspection.
These are by my researches through many font families.
-
Never get any prefixes:
(Speed 1)
Thin Hairline Regular Medium Heavy Fat(Speed 2)
Hairline Line Book News Demi Regular Normal Text Medium Heavy Mass Fat Poster -
May get Extra, Ultra or Very:
(Speed 1) no Very
Light Bold Black(Speed 2)
Thin Light Lite Thick Bold Dark Black -
May get Semi or Demi:
(Speed 1)
Bold(Speed 2)
Light Bold
These font formats will be inspected by the code:
eot
otf (Speed 2)
svg (Speed 2)
ttf
woff
woff2
- Preventing crashes and show an error message instead. (Maybe later...)
- Give me ideas to make this script better :)
After the process finishes, there will be a folder in the same directory as the code file, including every font file downloaded in separated folders by their font format. There will also be a text file named FONTNAME-Links.txt that includes the link of all downloaded files.
Another text file named FONTNAME-Links-All.txt exists, that contains every inspected link, even if not downloaded. This will help those who want to test the links manually using a download manager.