{"id":13809233,"url":"https://github.com/neverpanic/google-font-download","last_synced_at":"2025-04-04T17:07:48.385Z","repository":{"id":37790131,"uuid":"37390636","full_name":"neverpanic/google-font-download","owner":"neverpanic","description":"Locally host Google's web fonts","archived":false,"fork":false,"pushed_at":"2020-06-21T20:39:27.000Z","size":65,"stargazers_count":704,"open_issues_count":4,"forks_count":72,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-29T07:49:47.847Z","etag":null,"topics":["command-line","css","fonts","shell","webfonts"],"latest_commit_sha":null,"homepage":"https://neverpanic.de/blog/2014/03/19/downloading-google-web-fonts-for-local-hosting/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neverpanic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-13T22:47:52.000Z","updated_at":"2025-01-29T10:04:26.000Z","dependencies_parsed_at":"2022-07-19T23:32:44.959Z","dependency_job_id":null,"html_url":"https://github.com/neverpanic/google-font-download","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverpanic%2Fgoogle-font-download","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverpanic%2Fgoogle-font-download/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverpanic%2Fgoogle-font-download/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverpanic%2Fgoogle-font-download/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neverpanic","download_url":"https://codeload.github.com/neverpanic/google-font-download/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247217183,"owners_count":20903009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","css","fonts","shell","webfonts"],"created_at":"2024-08-04T01:02:11.871Z","updated_at":"2025-04-04T17:07:48.360Z","avatar_url":"https://github.com/neverpanic.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# google-font-download\n\nThis is a small shell script that allows you to download Google's web fonts to\nyour local file system. Additionally, a CSS file that uses your local copy of\nthe fonts is generated. You may want to use this if you want to avoid\nrequesting resources from 3rd party servers (for example for privacy reasons or\nbecause you do not have a connection to the public internet).\n\n## Requirements\n\nTo run this script, you will need:\n\n - Bash (\u003e= 4.x)\n - curl\n - getopt, preferrably a version that preserves quoted whitespace and supports long options\n - tput\n - fmt\n - sed, in a version that has extended regex support using either `-E` (BSD) or `-r` (GNU)\n - awk\n - tr\n - grep\n\n## License\n\nThe script is released under the 2-clause BSD license. The SPDX identifier of\nthis license is BSD-2-Clause. See the [`LICENSE`](LICENSE) file for\nthe terms.\n\n## Usage\n\n### Synopsis\n  `google-font-download [OPTION...] [FONT...]`\n\n### Options\n\n\u003cdl\u003e\n    \u003cdt\u003e\u003ccode\u003e-u URL\u003c/code\u003e, \u003ccode\u003e--url=URL\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eDowload the fonts specified in the URL. Note: You can mix it with normal arguments (See below).\u003c/dd\u003e\n    \u003cdt\u003e\u003ccode\u003e-f FORMAT\u003c/code\u003e, \u003ccode\u003e--format=FORMAT\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eDownload the specified set of webfont formats from Google's servers.\n        \u003ccode\u003eFORMAT\u003c/code\u003e is a comma-separated list of identifiers for\n        webfont formats. Supported identifiers are \u003ccode\u003eeot\u003c/code\u003e,\n        \u003ccode\u003ewoff\u003c/code\u003e, \u003ccode\u003ewoff2\u003c/code\u003e, \u003ccode\u003esvg\u003c/code\u003e, and\n        \u003ccode\u003ettf\u003c/code\u003e. Additionally, the special value \u003ccode\u003eall\u003c/code\u003e\n        expands to all supported formats in the order \u003ccode\u003ewoff2\u003c/code\u003e,\n        \u003ccode\u003ewoff\u003c/code\u003e, \u003ccode\u003eeot\u003c/code\u003e, \u003ccode\u003esvg\u003c/code\u003e,\n        \u003ccode\u003ettf\u003c/code\u003e. The default is \u003ccode\u003eall\u003c/code\u003e. The generated CSS\n        file will contain the font formats in the given order, which browsers\n        will process in-order. Note that you probably do not need all formats.\n        In most cases, a combination of WOFF2 and WOFF is enough. See\n        http://caniuse.com/#search=woff for a current status.\u003c/dd\u003e\n    \u003cdt\u003e\u003ccode\u003e-h\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eDisplay this message and exit.\u003c/dd\u003e\n    \u003cdt\u003e\u003ccode\u003e-l LANGSPEC\u003c/code\u003e, \u003ccode\u003e--languages=LANGSPEC\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eDownload the specified subset of languages from Google's webfonts.\n        \u003ccode\u003eLANGSPEC\u003c/code\u003e is a comma-separated list of idenfitiers for font\n        subsets. Common identifiers are \u003ccode\u003elatin\u003c/code\u003e,\n        \u003ccode\u003elatin-ext\u003c/code\u003e, \u003ccode\u003ecyrillic\u003c/code\u003e,\n        \u003ccode\u003ecyrillic-ext\u003c/code\u003e, \u003ccode\u003egreek\u003c/code\u003e, \u003ccode\u003egreek-ext\u003c/code\u003e,\n        etc. An undocumented language is \u003ccode\u003eall\u003c/code\u003e which means the full\n        (non-subset) files are served. The default is \u003ccode\u003elatin\u003c/code\u003e.\u003c/dd\u003e\n    \u003cdt\u003e\u003ccode\u003e-o OUTPUT\u003c/code\u003e, \u003ccode\u003e--output=OUTPUT\u003c/code\u003e\u003c/dt\u003e\n    \u003cdd\u003eWrite the generated CSS into \u003ccode\u003eOUTPUT\u003c/code\u003e. The file will be\n        overwritten and will be created if it doesn't exist. The default is\n        \u003ccode\u003efont.css\u003c/code\u003e.\u003c/dd\u003e\n\u003c/dl\u003e\n\n### Positional Arguments\n  This script accepts an arbitrary number of font specs. A font spec consists\n  of a font name as accepted by Google's servers, optionally followed by\n  a colon, an optional font weight in numbers or the string \"bold\" and an\n  optional font style of \"italic\" (or \"i\") for italics. In [EBNF](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form):\n\n  ```ebnf\n  fontspec = fontname, [ \":\", [ fontweight ], [ fontstyle ] ]\n  fontweight = number | \"bold\"\n  number = { digit }\n  digit = \"0\" | \"1\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\" | \"7\" | \"8\" | \"9\"\n  fontstyle = \"italic\" | \"i\"\n  ```\n\n  While Google's servers will accept other inputs and abbreviations for font\n  weight and font style, they are not supported by this script.\n\n  Note: if you don't use the URL argument, your font spec should *not* be URL-encoded and only one font weight\n  is supported per font specification. If you want to download multiple font\n  weights or styles, provide multiple font specs.\n\n  For example, to download Open Sans in\n   - light (300),\n   - normal (400),\n   - normal italic (400italic),\n   - bold (700), and\n   - bold italic (700italic),\n  run:\n```bash\ngoogle-font-download \\\n    \"Open Sans:300\" \"Open Sans:400\" \"Open Sans:400italic\" \\\n    \"Open Sans:700\" \"Open Sans:700italic\"\n```\nor in URL format:\n```bash\ngoogle-font-download --url=\"https://fonts.google.com/?selection.family=Open+Sans:300,400,400i,700,700i\"\n```\nYou can also mix the arguments:\n```bash\ngoogle-font-download --url=\"https://fonts.google.com/?selection.family=Open+Sans:300,400,400i\" \\\n\"Open Sans:700\" \"Open Sans:700i\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverpanic%2Fgoogle-font-download","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneverpanic%2Fgoogle-font-download","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverpanic%2Fgoogle-font-download/lists"}