CSS @font-face not working in IE8

76,449

this works in ie8/9

http://dev.bowdenweb.com/a/fonts/serif/alegreya/demo.html

@font-face {
    font-family: 'AftaserifRegular';
    src: url('AftaSerifThin-Regular-webfont.eot');
    src: url('AftaSerifThin-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('AftaSerifThin-Regular-webfont.woff') format('woff'),
         url('AftaSerifThin-Regular-webfont.ttf') format('truetype'),
         url('AftaSerifThin-Regular-webfont.svg#AftaserifRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}
Share:
76,449

Related videos on Youtube

hackshockr
Author by

hackshockr

Updated on October 18, 2020

Comments

  • hackshockr
    hackshockr over 3 years

    I have tried reading multiple articles on how to deal with custom fonts in IE, but they never seemed to work for me. I tried converting the fonts to EOT, but that didn't seem to work either. I am not sure what I am doing wrong, so I will post my code

    @font-face {
      font-family: "Klavika Regular";
        src: url('../fonts/klavika.eot');
        src: local('☺'), url('../fonts/klavika.woff') format('woff'), url('../fonts/klavika.ttf') format('truetype'), url('../fonts/klavika.svg') format('svg');
      font-weight: normal;
      font-style: normal;
    }
    
  • hackshockr
    hackshockr over 12 years
    Didn't seem to have any effect.
  • hackshockr
    hackshockr over 12 years
    Well, site looks awesome and all but the "Download your kit" button doesn't seem to do anything.
  • fine
    fine over 12 years
    Try to reload page and reload your font by d.pr/U1yY I advise you to read posts on the links "more information"( d.pr/r0Fn )
  • hackshockr
    hackshockr over 12 years
    Yea, got it. But it includes only HTML and stylesheet, no fonts tho'
  • fine
    fine over 12 years
    What font file (extension) you use (that FontSquirrel Generator can't work with)? And if you open HTML that you'v got, is there any information using your font?
  • Owen
    Owen over 10 years
    Why was local('☺') removed? What is it for?
  • albert
    albert over 10 years
    its another trick to get font-face to play nicely with ie. you can read about the different font-face solutions on paul irish's blog.