Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webfont CDN #172

Open
TheSpiritXIII opened this issue Dec 5, 2023 · 2 comments
Open

Webfont CDN #172

TheSpiritXIII opened this issue Dec 5, 2023 · 2 comments

Comments

@TheSpiritXIII
Copy link

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
Copy link

JSDelivr might fit your needs.

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

@TheSpiritXIII
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants