monaspace icon indicating copy to clipboard operation
monaspace copied to clipboard

Webfont CDN

Open TheSpiritXIII opened this issue 2 years ago • 2 comments

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.

TheSpiritXIII avatar Dec 05 '23 21:12 TheSpiritXIII

JSDelivr might fit your needs.

https://cdn.jsdelivr.net/gh/githubnext/[email protected]/fonts/webfonts/MonaspaceNeon-Regular.woff

coder0107git avatar Dec 05 '23 21:12 coder0107git

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

TheSpiritXIII avatar Dec 06 '23 23:12 TheSpiritXIII