Bootstrap glyphicon shows up fine but IE11 console reports CSS3111: @font-face encountered unknown error
for these files:
- glyphicons-halflings-regular.eot
- glyphicons-halflings-regular.woff
- glyphicons-halflings-regular.ttf
This is the Bootstrap override in my stylesheet (only the URL paths were changed):
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../../vendor/bootstrap/fonts/glyphicons-halflings-regular.eot');
src: url('../../vendor/bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
url('../../vendor/bootstrap/fonts/glyphicons-halflings-regular.woff2') format('woff2'),
url('../../vendor/bootstrap/fonts/glyphicons-halflings-regular.woff') format('woff'),
url('../../vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf') format('truetype'),
url('../../vendor/bootstrap/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
Side note:
If I add !important
after the first src
url, then the icon doesn't show up.
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../../vendor/bootstrap/fonts/glyphicons-halflings-regular.eot') !important;
...}
Using Bootstrap 3.3.4, IE11
How do I get rid of the errors?