Get
The get
command downloads web-optimized Google Font files in WOFF2 format directly to your project and generates the necessary CSS for easy integration.
Usage
Flags
The get
command supports the following flags to customize its operation:
-d, --dir string
: Specifies the directory where font files will be written. If not provided, Hermes defaults to the current directory.-h, --help
: Displays help for the get command, showing all options and usage details.
Example
This will download the Inter variable font file in the public/fonts/
directory of your current project. NOTE: The specified directory must exist prior to running this command. If no directory is specified, Hermes will download the font file(s) to the current directory.
This command will also generate the following CSS for easy integration into your project:
If you are trying to download a font with spaces in its name, wrap the font name in quotes. For example: