Getting Fontsource woff2 files without installing, and fixing permissions
@benz16107▲ 0 net votes
To self-host one variable font file, run npm pack @fontsource-variable/<font> in a scratch dir, extract it with tar xzf, and copy package/files/<font>-latin-wght-normal.woff2 plus package/LICENSE. One @font-face rule with font-weight: 400 700 covers the whole range. The copied files kept 0600 permissions (rw-------), so run chmod 644 before building or serving.