1

So the fonts folder of the FontAwesome distribution contains 6 different files.

fontawesome-webfont.eot
fontawesome-webfont.svg
fontawesome-webfont.ttf
fontawesome-webfont.woff
fontawesome-webfont.woff2
FontAwesome.otf

Why? Do I need all of them? I don't see anything obvious on the FontAwesome readme or website explaining why all these different formats exist.

I'd prefer to have only the ones I need checked into my project.

Mud
  • 28,277
  • 11
  • 59
  • 92

2 Answers2

1

Different browsers support different formats, there is a handy table on MDN for font formats.

You could use that table to select which fonts you want to include - you could just supply the WOFF, which has reasonably broad support. But by including more formats, more people will get the font rather than the fallback.

What does each font get you?

WOFF is pretty standard for "modern browsers", and WOFF2 is the next generation. These are the formats you really need.

You can extend the support by adding the following formats to gain some old versions of browsers:

TTF/OTF - Firefox < 3.6, Safari < 5.1, Opera < 11, Chome < 5.0

EOT - IE < 9

SVG - Chrome < 5.0

Fenton
  • 241,084
  • 71
  • 387
  • 401
1

This answer might help:

Why should we include ttf, eot, woff, svg,... in a font-face

Basically certain older browsers (or specific newer browsers) need different formats. By including all the formats, a client's browser can switch to the one it supports.

Community
  • 1
  • 1
abagshaw
  • 6,162
  • 4
  • 38
  • 76