<commit_before>Googlefonts-Local-Download-Ruby
===============================<commit_msg>usage and intro updated<commit_after>## Google font to local CSS file ##

Since Google generates diffrent font response according to user agent it makes it very annoying to download a font to your local server for many different reasons.

This script it makes it very easy to download all possible fonts from Google by adjusting headers for all relevant types and font weights.

Tested on Ruby 1.9.3

## Example cli ##

	ruby google_fonts_dl.rb -f Montserrat:400,700 -f Raleway:400,500,600


## Dir structure ##

	`-- tmp_fonts
    |-- fonts
    |   |-- montserrat
    |   |   |-- montserrat_400.eot
    |   |   |-- montserrat_400.ttf
    |   |   |-- montserrat_400.woff
    |   |   |-- montserrat_400.woff2
    |   |   |-- montserrat_700.ttf
    |   |   |-- montserrat_700.woff
    |   |   `-- montserrat_700.woff2
    |   `-- raleway
    |       |-- raleway_400.eot
    |       |-- raleway_400.ttf
    |       |-- raleway_400.woff
    |       |-- raleway_400.woff2
    |       |-- raleway_500.ttf
    |       |-- raleway_500.woff
    |       |-- raleway_500.woff2
    |       |-- raleway_600.ttf
    |       |-- raleway_600.woff
    |       `-- raleway_600.woff2
    `-- fonts.css
    
    4 directories, 18 files
	

Enjoy
{'fraction_non_alphanumeric': 0.13318112633181126, 'fraction_numerical': 0.05859969558599695, 'mean_word_length': 2.0868544600938965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6375143', 'n_tokens_mistral': 522, 'n_tokens_neox': 477, 'n_words': 103}