Skip to content

Font-Files-2-Font-Faces automatically generates CSS font faces from local fonts

License

Notifications You must be signed in to change notification settings

maximebories/FF2FF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Font-Files-2-Font-Faces, A Font Face Generator

A shell script to generate a CSS file with @font-face declarations for web fonts in a given directory.

Usage

Run the script with the following options:

  • -d, --directory: The directory containing the web fonts. Default is the current directory.
  • -o, --output: The name of the output CSS file. Default is "fonts.css".
  • -e, --exclude: A directory to exclude from the search.

For example:

./ff2ff.sh -d /path/to/fonts -o my-fonts.css -e /path/to/fonts/excluded-directory

Note

The script sorts @font-face declarations alphabetically by font family name.

About

Font-Files-2-Font-Faces automatically generates CSS font faces from local fonts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages