Answer the question
In order to leave comments, you need to log in
How to make two identical fonts with different weights work in IE10?
There is such a layout . But we are talking about a specific problem with the font. There is a contact list at the end of the page:
And it looks fine in all browsers except IE. I don't know how it is in older versions, but there is a problem even in IE10. Here is the problem:
So, there are connected fonts:
@font-face {
font-family: "BebasNeueBold";
src: url("fonts/BebasNeueBold.otf"),
url("fonts/BebasNeueBold.ttf");
}
@font-face {
font-family: "BebasNeueBook";
src: url("fonts/BebasNeueBook.otf"),
url("fonts/BebasNeueBook.ttf");
}
.contact-name {
font-family: "BebasNeueBold";
font-size:24px;
}
.contact-content {
font-family: "BebasNeueBook";
font-size:24px;
}
Answer the question
In order to leave comments, you need to log in
The issue has been discussed a thousand times already.
IE < 9 needs a font in eot format, IE 9+ - woff.
Connect all the necessary formats.
@font-face {
font-family: 'room';
src: url('../fonts/room_bold-webfont.eot');
src: url('../fonts/room_bold-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/room_bold-webfont.woff2') format('woff2'),
url('../fonts/room_bold-webfont.woff') format('woff'),
url('../fonts/room_bold-webfont.ttf') format('truetype'),
url('../fonts/room_bold-webfont.svg#roombold') format('svg');
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: 'room';
src: url('../fonts/room-webfont.eot');
/*остальные форматы*/
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'room';
src: url('../fonts/room_bold-webfont.eot');
/*остальные форматы*/
font-weight: 600;
font-style: normal;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question