All Projects → neverpanic → Google Font Download

neverpanic / Google Font Download

Licence: bsd-2-clause
Locally host Google's web fonts

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Google Font Download

Webfontpicker
A bookmarklet that previews Google Fonts on a live website
Stars: ✭ 31 (-94.99%)
Mutual labels:  fonts, webfonts
Webfont Downloader
A small web service which converts webfonts into zip archives
Stars: ✭ 23 (-96.28%)
Mutual labels:  fonts, webfonts
Spoqa Han Sans
Spoqa Han Sans
Stars: ✭ 306 (-50.57%)
Mutual labels:  fonts, webfonts
Awesome Typography
✏︎ Curated list about digital typography 🔥
Stars: ✭ 947 (+52.99%)
Mutual labels:  fonts, webfonts
Linearicons
Linearicons is the highest quality set of line icons, matching with minimalist UI designs in iOS.
Stars: ✭ 64 (-89.66%)
Mutual labels:  fonts, webfonts
Urbanist
Urbanist is a low-contrast, geometric sans-serif inspired by Modernist design and typography.
Stars: ✭ 374 (-39.58%)
Mutual labels:  fonts, webfonts
Figlet Fonts
my collection of figlet / toilet ascii art fonts
Stars: ✭ 393 (-36.51%)
Mutual labels:  command-line, fonts
Git Labelmaker
🎏 Manage your GitHub labels from the command line!
Stars: ✭ 534 (-13.73%)
Mutual labels:  command-line
Googler
🔍 Google from the terminal
Stars: ✭ 5,594 (+803.72%)
Mutual labels:  command-line
Jrnl
Collect your thoughts and notes without leaving the command line.
Stars: ✭ 5,126 (+728.11%)
Mutual labels:  command-line
Macports Base
The MacPorts command-line client
Stars: ✭ 502 (-18.9%)
Mutual labels:  command-line
Shiori
Simple bookmark manager built with Go
Stars: ✭ 5,315 (+758.64%)
Mutual labels:  command-line
Broot
A new way to see and navigate directory trees : https://dystroy.org/broot
Stars: ✭ 6,362 (+927.79%)
Mutual labels:  command-line
Nve
Run any command on specific Node.js versions
Stars: ✭ 531 (-14.22%)
Mutual labels:  command-line
Jsonui
jsonui is an interactive JSON explorer on your command line
Stars: ✭ 583 (-5.82%)
Mutual labels:  command-line
Telegram Send
Send messages and files over Telegram from the command-line.
Stars: ✭ 519 (-16.16%)
Mutual labels:  command-line
Weird Fonts
𝑨 𝑱𝒂𝒗𝒂𝑺𝒄𝒓𝒊𝒑𝒕 𝒑𝒂𝒄𝒌𝒂𝒈𝒆 𝒕𝒉𝒂𝒕 𝒕𝒖𝒓𝒏 𝒂𝒍𝒑𝒉𝒂𝒏𝒖𝒎𝒆𝒓𝒊𝒄 𝒄𝒉𝒂𝒓𝒂𝒄𝒕𝒆𝒓𝒔 𝒊𝒏𝒕𝒐 𝒘𝒆𝒊𝒓𝒅 𝒇𝒐𝒏𝒕 𝒔𝒕𝒚𝒍𝒆.
Stars: ✭ 602 (-2.75%)
Mutual labels:  fonts
Tools Osx
A small collection of command line tools for Mac OS X, incl.: clipcat, dict, eject, launch, ql, swuser, trash & with.
Stars: ✭ 576 (-6.95%)
Mutual labels:  command-line
Csvtk
A cross-platform, efficient and practical CSV/TSV toolkit in Golang
Stars: ✭ 566 (-8.56%)
Mutual labels:  command-line
Quadplay
The quadplay✜ fantasy console
Stars: ✭ 563 (-9.05%)
Mutual labels:  fonts

google-font-download

This is a small shell script that allows you to download Google's web fonts to your local file system. Additionally, a CSS file that uses your local copy of the fonts is generated. You may want to use this if you want to avoid requesting resources from 3rd party servers (for example for privacy reasons or because you do not have a connection to the public internet).

Requirements

To run this script, you will need:

  • Bash (>= 4.x)
  • curl
  • getopt, preferrably a version that preserves quoted whitespace and supports long options
  • tput
  • fmt
  • sed, in a version that has extended regex support using either -E (BSD) or -r (GNU)
  • awk
  • tr
  • grep

License

The script is released under the 2-clause BSD license. The SPDX identifier of this license is BSD-2-Clause. See the LICENSE file for the terms.

Usage

Synopsis

google-font-download [OPTION...] [FONT...]

Options

-u URL, --url=URL
Dowload the fonts specified in the URL. Note: You can mix it with normal arguments (See below).
-f FORMAT, --format=FORMAT
Download the specified set of webfont formats from Google's servers. FORMAT is a comma-separated list of identifiers for webfont formats. Supported identifiers are eot, woff, woff2, svg, and ttf. Additionally, the special value all expands to all supported formats in the order woff2, woff, eot, svg, ttf. The default is all. The generated CSS file will contain the font formats in the given order, which browsers will process in-order. Note that you probably do not need all formats. In most cases, a combination of WOFF2 and WOFF is enough. See http://caniuse.com/#search=woff for a current status.
-h, --help
Display this message and exit.
-l LANGSPEC, --languages=LANGSPEC
Download the specified subset of languages from Google's webfonts. LANGSPEC is a comma-separated list of idenfitiers for font subsets. Common identifiers are latin, latin-ext, cyrillic, cyrillic-ext, greek, greek-ext, etc. An undocumented language is all which means the full (non-subset) files are served. The default is latin.
-o OUTPUT, --output=OUTPUT
Write the generated CSS into OUTPUT. The file will be overwritten and will be created if it doesn't exist. The default is font.css.

Positional Arguments

This script accepts an arbitrary number of font specs. A font spec consists of a font name as accepted by Google's servers, optionally followed by a colon, an optional font weight in numbers or the string "bold" and an optional font style of "italic" (or "i") for italics. In EBNF:

fontspec = fontname, [ ":", [ fontweight ], [ fontstyle ] ]
fontweight = number | "bold"
number = { digit }
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
fontstyle = "italic" | "i"

While Google's servers will accept other inputs and abbreviations for font weight and font style, they are not supported by this script.

Note: if you don't use the URL argument, your font spec should not be URL-encoded and only one font weight is supported per font specification. If you want to download multiple font weights or styles, provide multiple font specs.

For example, to download Open Sans in

  • light (300),
  • normal (400),
  • normal italic (400italic),
  • bold (700), and
  • bold italic (700italic), run:
google-font-download \
    "Open Sans:300" "Open Sans:400" "Open Sans:400italic" \
    "Open Sans:700" "Open Sans:700italic"

or in URL format:

google-font-download --url="https://fonts.google.com/?selection.family=Open+Sans:300,400,400i,700,700i"

You can also mix the arguments:

google-font-download --url="https://fonts.google.com/?selection.family=Open+Sans:300,400,400i" \
"Open Sans:700" "Open Sans:700i"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].