Thanks for contributing to xz/fonts!
- Only open-source fonts will be accepted
- Make sure the font's license allows republication!
Font stylesheets are stored in /serve, and font files are stored in /serve/src.
Adding a font:
- Upload all weights to https://transfonter.org/. The format you upload them in doesn't matter
- Use these settings:
- Press "Convert" and download the archive
- Clone the GitHub repository to your device:
git clone https://github.com/xz/fonts.git - Open the archive downloaded from transfonter
- Create a new folder in
/fonts/serve/srcfor the name of the font. Only lowercase letters/numbers and dashes, please! I'll usefont-namein this example. - Move the
.woffand.woff2files to/fonts/serve/src/font-name - Move the
.cssfile to/fonts/serveand rename tofont-name.css - Open the
.cssfile. Do a find-and-replace for all instances ofurl(', and replace it withurl('src/font-name/. Use the same font name as above.
You're done! Thanks x100 for contributing. Push your PR and I'll review it ASAP.
