Firacode: What about publishing as webfont to cdn?

Created on 24 May 2015  Â·  19Comments  Â·  Source: tonsky/FiraCode

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

What you think about it?

Most helpful comment

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.

All 19 comments

Are there any free ones?

On Sun, May 24, 2015 at 11:13 PM Alexej Yaroshevich <
[email protected]> 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
https://github.com/tonsky/FiraCode/issues/18.

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

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.

:+1: This would be great to have on Google Fonts, at the very least.

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

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

On Tue, Feb 16, 2016 at 1:51 AM Tom Byrer [email protected] 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
https://github.com/tonsky/FiraCode/issues/18#issuecomment-184362084.

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.)

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

@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.

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

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

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?

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pamu picture pamu  Â·  3Comments

Photonico picture Photonico  Â·  3Comments

mlajtos picture mlajtos  Â·  4Comments

magnus-madsen picture magnus-madsen  Â·  3Comments

pedrowebcomum picture pedrowebcomum  Â·  4Comments