ckolderup / postmarks

a single-user bookmarking website designed to live on the Fediverse
https://postmarks.glitch.me
MIT License
452 stars 38 forks source link

Replace TTF files with WOFF2 #160

Closed boogah closed 8 months ago

boogah commented 8 months ago

Fixes #95

Reduces the file size of the web fonts being used by Postmarks installs by swapping TTF for WOFF2.

$ woff2_compress PublicSans-Italic-VariableFont_wght.ttf
Processing PublicSans-Italic-VariableFont_wght.ttf => PublicSans-Italic-VariableFont_wght.woff2
Compressed 99991 to 44431.

$ woff2_compress PublicSans-VariableFont_wght.ttf
Processing PublicSans-VariableFont_wght.ttf => PublicSans-VariableFont_wght.woff2
Compressed 95795 to 41419.

✅ This PR complies with the Open Font License used by Public Sans.