0

I'm using two @font-face in CSSreset.css exactly like each other, and just one of them works! This is the style code:

@font-face {
        font-family: 'B Mitra';
        src: url('./fonts/B Mitra.eot');
        src: url('./fonts/B Mitra.eot?#iefix') format('embedded-opentype'),
        url('./fonts/B Mitra.woff') format('woff'),
        url('./fonts/B Mitra.ttf') format('truetype'),
        url('./fonts/B Mitra.svg#webfont') format('svg');
    }

@font-face {
        font-family: 'BBCNassim';
        src: url('./fonts/BBCNassim.eot');
        src: url('./fonts/BBCNassim.eot?#iefix') format('embedded-opentype'),
        url('./fonts/BBCNassim.woff') format('woff'),
        url('./fonts/BBCNassim.ttf') format('truetype'),
        url('./fonts/BBCNassim.svg#webfont') format('svg');
    }

The second @font-face not working well. this is how I use them in my stylesheet:

#Download > a {
        font-family: 'BBCNassim';
    }

This is not working and shows "tahoma" font. the wierd part is, if the "BBCNassim" font not load correctly, the default browser font shows. So, when I use font-family: 'BBCNassim';, the font will be tahoma.

This is the "B Mitra" font witch shows and load correctly:

#Map_Eshterak {
        font-family: 'B Mitra';
    }

SCREENSHOT: https://i.stack.imgur.com/ptIz5.jpg

The problem is not from the font; because if i copy "B Mitra" fonts, and change the name to "BBC Nassim", the same thing will happen.

Mehdi Hoseini
  • 407
  • 1
  • 4
  • 12
  • OK guys. I realized that Firefox and IE works fine and Show both fonts correctly. mybe the problem is because i'm using google chrome 32.0.1700.68 BETA. i'm going to download stable version and let you know. – Mehdi Hoseini Jan 03 '14 at 14:21
  • I must say that the Chrome betas are always very stable for me. Currently using the v34 Canary without problems. – Mr Lister Jan 03 '14 at 14:27
  • @MrLister Yes. I never had problem with unstable chrome too. but i think its the only option. – Mehdi Hoseini Jan 03 '14 at 14:40
  • NO LUCK. stable chrome not working too! – Mehdi Hoseini Jan 03 '14 at 15:14