Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to prevent IE7-IE8 from downloading font-face files?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #46365
    TreeRoot
    Participant

    Here’s the font-face declaration (btw, I omitted @font-face below due to markdown code restrictions):

    font-face {
    font-family: ‘fontawesome’;
    src:url(‘fontawesome.eot’); // IE9 Compat Modes
    src:url(‘fontawesome.eot?#iefix’) format(’embedded-opentype’), // IE6-IE8
    url(‘fontawesome.woff’) format(‘woff’), // Modern Browsers
    url(‘fontawesome.ttf’) format(‘truetype’), // Safari, Android, iOS
    url(‘fontawesome.svg#fontawesome’) format(‘svg’); // Legacy iOS
    font-weight: normal;
    font-style: normal;
    }

    Is there any way to modify the above to force IE7-8 to skip, ignore, or hide this declaration without resorting to a conditional comment? I need IE8 skipped due to font rendering inconsistencies and I want to prevent an unnecessary download of the .eot file.

    Thanks.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.