I'm encountering a minor problem with a website I'm currently working on. My CSS and web fonts are from Fonts.com, and everything seems fine except in Internet Explorer. Initially, the page displays with the fonts correctly applied, but once the loading is complete, IE reverts back to the default font.
Here's an example of the CSS:
@font-face{
font-family:"HelveticaNeueW02-55Roma";
src:url("/d/0b3a3fca-0fad-402b-bd38-fdcbad1ef776.eot?d44f19a684109620e484167aa390e81872e11b421ef14b20f5dda8683b7716e34431bd7031a61bffb8b38558710357d5ed49d8a7dcd4f490bf2bc9922040a50d670eaafb6e334fcf61c48a10483015d48bd9b9cb074a09c71c211940cb0c60886a2d42510bad7eced9195baae7bedb11ccbdb0d618032faccca0c925a83db7aac01d0bae4b090b6680179034630a36491101451...
and typical use cases:
body {
font-family: "DIN Next W02 Cond";
font-weight: normal;
font-size: 14px;
font-weight: normal;
}
p {
font-family: "HelveticaNeueW02-55Roma";
font-weight: normal;
font-size: 14px;
line-height: 1.5;
}
The wider font appears after the page fully loads, while the narrower font (the correct one) shows during loading.
Is there a simple solution? Fonts.com offers a web portal for specifying fonts in the CSS served from their servers, so editing that directly isn't straightforward. However, I can modify the font-family
property for elements using the web fonts. Any additional details needed, I'll provide where possible.
Edit: this issue is not related to flash of unstyled content; it initially renders properly, then switches to the default font upon completion of page loading. This unexpected behavior has led me to seek help here for a resolution.