在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):neverpanic/google-font-download开源软件地址(OpenSource Url):https://github.com/neverpanic/google-font-download开源编程语言(OpenSource Language):Shell 80.0%开源软件介绍(OpenSource Introduction):google-font-downloadThis 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). RequirementsTo run this script, you will need:
LicenseThe script is released under the 2-clause BSD license. The SPDX identifier of
this license is BSD-2-Clause. See the UsageSynopsis
Options
Positional ArgumentsThis 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
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" |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论