4

Some websites, notably Github, started using special downloadable fonts and various little pictures are broken when font downloading is disabled.

How to statically install just GitHub's font into Firefox without enabling font downloading from web?

  • I know you can install a custom CSS in firefox. I don't know how to call it on a per website basis. – Everett Aug 13 '12 at 13:22
  • It's not about CSS. It's about fonts that those CSS referring. – Vi. Aug 13 '12 at 14:01
  • 1
    And if you install a local CSS you can point to their (github's) font (after you d/l it and install it on your system), or any font you want. I know this because I've done it. Configurations in the local CSS will override the CSS that comes from the website. This would work if you could make it website specific. My local CSS overrides ALL sites I connect to. – Everett Aug 13 '12 at 14:08
  • +1 for @Everett – I’ve tried it too, but without a local override CSS, and (because of the method Github uses) it doesn’t work, so you really need that. – mirabilos Dec 6 '13 at 11:54
  • For per-site CSS overrides: @-moz-document domain("github.com") { * {font-family: 'Open Sans' !important;} } – Mica Jan 10 '14 at 15:36
1

Browsers may cache font resources (.woff etc.), but usually don’t support a permanent install. If the font license allows it, you could fetch the file (fontinfo addon may help), convert it to a format your OS supports (usually .ttf/.otf, several tools and services available) and install it locally, but you may have to add rules to your user stylesheet if the site authors didn’t anticipate anyone would have the font installed on their system (local() in src descriptor of @font-face rule). For many FOSS fonts, you’ll be able to find an up-to-date copy in several font formats on the respective homepage/repository, e.g. Octicons for Github, so no need for converting the WOFF yourself.

| improve this answer | |
0

It is possible that the following will work:

Then again, it might not work. If it doesn't, try renaming it to octicons.woff. I haven't tried this: it might do all sorts of disastrous things. I personally can't understand why you block CSS fonts.

(This is installing to Windows, not Firefox.)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.