Bootstrap - about fonts files (.eot .svg .ttf .woff and .woff2) roles and usages

前端 未结 1 2080
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-14 19:29

In the fonts folder of Bootstrap 3, we can see those files:

  • glyphicons-halflings-regular.eot
  • glyphicons-halflings-regular.svg
  • glyphicons-halfling
1条回答
  •  不知归路
    2021-02-14 20:27

    They are included because each font was created to solve different problems. Woff and woff2 are the newest formats which were designed to stop font piracy. Svg is also a newer format which is a vector file and used on iOS mobile devices. Tff and eot are old school formats used by old browsers, but they allow anyone to download and use the font for free.

    Short answer: They are all included for multi-version cross-browser compatibility.

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

    0 讨论(0)
提交回复
热议问题