Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap fonts folder

I am writing a seminar work about Twitter Bootstrap. I should implement a description of all files in the bootstrap file but I don't know what single files in fonts folder exactly do.

├── glyphicons-halflings-regular.eot
    ├── glyphicons-halflings-regular.svg
    ├── glyphicons-halflings-regular.ttf
    ├── glyphicons-halflings-regular.woff
    └── glyphicons-halflings-regular.woff2

Is there anyone who could describe the usage of those 5 files?

like image 972
Tomáš Nosek Avatar asked Mar 21 '15 12:03

Tomáš Nosek


1 Answers

They are just different format of the Glyphicons font, to work with different browsers. See this page for a handy explanation:

This is the method with the deepest support possible right now:

@font-face {
  font-family: 'MyWebFont';
  src: url('webfont.eot'); /* IE9 Compat Modes */
  src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('webfont.woff2') format('woff2'), /* Super Modern Browsers */
       url('webfont.woff') format('woff'), /* Pretty Modern Browsers */
       url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

See the corresponding lines in the Bootstrap LESS source.

like image 150
GregL Avatar answered Sep 22 '22 10:09

GregL