I'm using a specific font in my web page called "Ethnocentric". Because this font won't already be installed on client machines, I've included "@@font-face" in th style in the web page. But when I open the site using IE 10 on a PC that I know doesn't have this font installed, it fails. What am I doing wrong?
@@font-face {
font-family: "Ethnocentric";
src: url(/ethnocentric.ttf) format("truetype");
}
.ethnocentricFont {
font-family: "Ethnocentric", sans - serif;
}
The Ethocentric.ttf file is located in my wwwroot folder, and I'm referencing the font as follows:
<p class="ethnocentricFont" style="display: inline-block; color: gainsboro; font-size: 18px; text-align: left; margin: 0 auto; vertical-align: middle; margin-left: 8px;">My Heading</p>
The font displays correctly in Chrome, but not in IE10. I just read this article - maybe this is why it's not working in IE.