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

What about publishing as webfont to cdn? #18

Closed
qfox opened this issue May 24, 2015 · 19 comments
Closed

What about publishing as webfont to cdn? #18

qfox opened this issue May 24, 2015 · 19 comments

Comments

@qfox
Copy link

qfox commented May 24, 2015

It would be great to use the most actual version of this on web sites right from CDN.

What you think about it?

@tonsky
Copy link
Owner

tonsky commented May 24, 2015

Are there any free ones?

On Sun, May 24, 2015 at 11:13 PM Alexej Yaroshevich <
notifications@github.com> wrote:

It would be great to use the most actual version of this on web sites
right from CDN.

What you think about it?


Reply to this email directly or view it on GitHub
#18.

@qfox
Copy link
Author

qfox commented May 24, 2015

@tonsky Some well-known: https://cdnjs.com/, http://www.jsdelivr.com/, or even github.io (https://pages.github.com/) 😼

@okonomiyaki3000
Copy link

Also try to get hosted on https://www.google.com/fonts
I don't think I would use this font for writing code but I would use it for displaying code. So it would be great to have it conveniently loadable in this way.

@WorldMaker
Copy link

👍 This would be great to have on Google Fonts, at the very least.

@tonsky
Copy link
Owner

tonsky commented Feb 15, 2016

@tomByrer
Copy link

I can add it to jsDelivr for you, including automated updating (since you use releases. I think it would be easiest to have your GitHub folder like this:

/dist
  firacode.css (should be minified)
  /ttf
    (files)
  /woff
    (files)
  /woff2
    (files)

Don't bother with EOT or SVG fonts anymore please. WOFF2 covers over half of browser usage, so that should try to load first.
Also helpful: https://github.com/google/woff2

@tonsky
Copy link
Owner

tonsky commented Feb 15, 2016

Thanks! I’ll try to get webfonts for next release

On Tue, Feb 16, 2016 at 1:51 AM Tom Byrer notifications@github.com wrote:

I can add it to jsDelivr for you, including automated updating (since you
use releases https://github.com/tonsky/FiraCode/releases. I think it
would be easiest to have your GitHub folder like this:

/dist
firacode.css (should be minified)
/ttf
(files)
/woff
(files)
/woff2
(files)

Don't bother with EOT or SVG fonts anymore please. WOFF2 covers over half
of browser usage http://caniuse.com/#feat=woff2, so that should try to
load first.
Also helpful: https://github.com/google/woff2


Reply to this email directly or view it on GitHub
#18 (comment).

@tomByrer
Copy link

Welcome.
Did more research; seems EOT is needed only if you need to support IE 6-8.. TTF has bad support in IE oddly enough, & really is only needed in some old (2/3? of Android <=4.3). WOFF is supported IE9+ & Android 4.4 (& some 4.x). So you could get away with just WOFF & WOFF2, since IE8 & old Android is unlikely going to be used by programmers anyhow.

(IIRC Some browsers have a bug that tries to d/l all font files, even if not used. That's why Google Fonts sniffs browser agent, & serves a custom CSS. jsDelivr can't sniff; sorry.)

@tomByrer tomByrer mentioned this issue Mar 12, 2016
@Jastrzebowski
Copy link
Contributor

Meanwhile can we use tools like mentioned https://github.com/google/woff2, and self host converted fonts without breaking the OFL terms?

@ghost
Copy link

ghost commented Nov 8, 2016

rawgit.com looks great 😃

Direct URL to latest version:
https://cdn.rawgit.com/tonsky/FiraCode/master/distr/ttf/FiraCode-Regular.ttf

@ghost
Copy link

ghost commented Jun 24, 2017

@simon-matt Not a particularly good idea. See the front page:

Use a specific tag or commit hash in the URL (not a branch). Files are cached permanently based on the URL. Query strings are ignored.

Rawgit only makes sense for tagged releases and that would have to be updated manually.

@stereobooster
Copy link

Distribution as npm package would work for me, like in https://github.com/KyleAMathews/typefaces

@jesstelford
Copy link

jesstelford commented Apr 18, 2018

It's available on unpkg too (backed by cloudflare): https://unpkg.com/firacode/distr/

eot

otf

ttf

woff

woff2

@j-f1
Copy link
Contributor

j-f1 commented Apr 18, 2018

CSS: https://unpkg.com/firacode/distr/fira_code.css

@Ir1d
Copy link

Ir1d commented Oct 2, 2018

Hi, I wonder if there's a plan on adding Fira Code to Google Fonts. Thx!

upd: I noticed google/fonts/issues/1460, sorry for bothering

@xlanor
Copy link

xlanor commented Oct 13, 2018

Given that rawgit is closing down (https://rawgit.com/), would it be possible to publish the latest version to npm (https://www.npmjs.com/package/firacode), such that the README.md would use unpkg in the sample?

@j-f1
Copy link
Contributor

j-f1 commented Oct 13, 2018

Looks like someone else has that package name, but @tonsky could contact the user and npm to get access.

@WorldMaker
Copy link

JsDelivr also supports GitHub CDN like RawGit did, as another option.

tonsky pushed a commit that referenced this issue Oct 15, 2018
As Rawgit is closing example links will stop to function at the end of October 2019. I've chosen jsdelivr over unpkg as it's using GitHub as a source like Rawgit, rather than NPM, and have a bigger [market share](https://w3techs.com/technologies/comparison/cd-jsdelivr,cd-unpkg). Related issue #18.
@jam1e
Copy link

jam1e commented Nov 24, 2019

This font is now available via Google Fonts: https://fonts.google.com/specimen/Fira+Code

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

No branches or pull requests