1.1.1 • Published 4 months ago

gfontizer v1.1.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
4 months ago

GFontizer

GFontizer is a simple Node.js script to download Google Fonts for local provisioning. It's useful in situations where you need to self-host Google Fonts due to privacy policies, offline use, or faster loading times.

Features

  • Downloads Google Fonts in WOFF2 format
  • Generates a CSS file with updated @font-face rules
  • Removes comments from the CSS file
  • Replaces single quotes with double quotes in the CSS file
  • Handles multiple fonts and font weights

Installation

You can install GFontizer via npm:

npm install gfontizer

Usage

To use GFontizer, run the script with the Google Fonts URL as the first argument:

gfontizer "https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap"

By default, fonts will be downloaded to ./resources/assets/fonts/ and the CSS will be written to ./resources/assets/styles/common/_gfonts.scss. You can specify different paths as the second and third arguments:

gfontizer "https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" "./my-fonts/" "./styles/_gfonts.scss"

License

GFontizer is licensed under the GPL-3.0-or-later license.

1.1.1

4 months ago

1.1.0

4 months ago

1.0.7

7 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago