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

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

  • glyphicons-halflings-regular.eot
  • glyphicons-halflings-regular.svg
  • glyphicons-halflings-regular.ttf
  • glyphicons-halflings-regular.woff
  • glyphicons-halflings-regular.woff2
  • Are they all the same files converted in different formats? Are they all necessary? What is the role/usage of each file?


    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

    链接地址: http://www.djcxy.com/p/88200.html

    上一篇: 新的Android Studio活动设计模式内容

    下一篇: 关于字体文件(.eot .svg .ttf .woff和.woff2)的角色和用法