Boot Fonts Folder

I am writing a Twitter Bootstrap workshop. I have to describe all the files in the bootstrap file, but I do not know what the files in the font folder do exactly.

β”œβ”€β”€ 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 use of these 5 files?

+6
source share
1 answer

This is just another Glyphicons font format for working with different browsers. See this page for a convenient explanation:

This is the deepest support method available 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 .

+10
source

Source: https://habr.com/ru/post/984083/


All Articles