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/src
for the name of the font. Only lowercase letters/numbers and dashes, please! I'll usefont-name
in this example. - Move the
.woff
and.woff2
files to/fonts/serve/src/font-name
- Move the
.css
file to/fonts/serve
and rename tofont-name.css
- Open the
.css
file. 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.