Reputation: 49
Here is the code I am currently using:
@font-face {
font-family: 'otto';
src: url('font/otto.eot') format('embedded-opentype'),
url('font/otto.woff') format('woff'),
url('font/otto.ttf') format('truetype'),
url('font/otto.svg#svgFontName') format('svg');
}
Seems to work perfectly in Chrome but in just about everything else it renders a totally different font which is much larger and looks awful.
Upvotes: 1
Views: 78
Reputation: 49
This works:
@font-face{
font-family:otto;
src: url('../font/otto.eot');
src: url('../font/otto.eot?#iefix') format('embedded-opentype'),
url('../font/otto.woff') format('woff'),
url('../font/otto.ttf') format('truetype'),
url('../font/otto.svg#Otto') format('svg');
}
Upvotes: 1