githubnext / monaspace

An innovative superfamily of fonts for code
https://monaspace.githubnext.com
SIL Open Font License 1.1
13.14k stars 219 forks source link

Webfont CDN #172

Open TheSpiritXIII opened 7 months ago

TheSpiritXIII commented 7 months ago

I use a Chromebook as my main development driver. As a result, the only way I could install fonts is by using an extension to import a webfont.

Other fonts such as Firacode are hosted on CDNs.

Sadly using GitHub directly gives a CORS error:

@font-face {
  font-family: 'Monaspace Neon';
  src: url(https://github.com/githubnext/monaspace/raw/main/fonts/webfonts/MonaspaceNeon-Regular.woff) format(woff2);
}

It would be great to see Monaspace on popular CDNs.

coder0107git commented 7 months ago

JSDelivr might fit your needs.

https://cdn.jsdelivr.net/gh/githubnext/monaspace@v1.000/fonts/webfonts/MonaspaceNeon-Regular.woff
TheSpiritXIII commented 6 months ago

Thanks! That works beautifully. I would love to see that mentioned in the README.