Forums

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

Home Forums CSS Css3 @fontface is not working with Chrome 17 and Firefox 10

  • This topic is empty.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #36657
    MBAsfoor
    Member

    I’m trying this code For the @fontface for an arabic font:

    @font-face {
    font-family: 'MothnnaFont';
    src: url('fonts/mothnna.eot'); /* IE9 Compat Modes */
    src: url('fonts/mothnna.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('fonts/mothnna.woff') format('woff'), /* Modern Browsers */
    url('fonts/mothnna.ttf') format('truetype'), /* Safari, Android, iOS */
    url('fonts/mothnna.svg#svgMothnnaFont') format('svg'); /* Legacy iOS */
    }

    I’m using the font in a class named demo :

    .demo {
    font-family:'MothnnaFont',Sans-Serif;
    width:800px;
    margin:10px auto;
    text-align:center;
    border:1px solid #666;
    padding:10px;
    direction: rtl;
    }

    This code is working on ie but it’s not working on firefox 10 or chrome 17

    So anybody can help me to make this font appear a cross all browsers ?

    Update: this is how the font should look like :

    http://www.sitepoint.com/forums/attachment.php?attachmentid=59040&d=1329399651

    #96697
    TheDoc
    Member

    Do you have a link to the site?

    #96725
    MBAsfoor
    Member

    I’m testing this font locally

    #96765
    TheDoc
    Member

    Hmmm, nothing looks wrong to me.

    The only thing I’d suggest doing is making sure to set the font to font-weight: normal;

    #96766
    MBAsfoor
    Member

    didn’t work

    is there a possibility that this font can’t be used on web ?

    #96793
    Paulie_D
    Member

    @MBAsfoor

    If it’s working in IE then logically it should work in other browsers.

    Do you have a link to the site where you got the font?

    #96797
    MBAsfoor
    Member
    #96799
    MBAsfoor
    Member

    It still not working for me

    #96800
    Paulie_D
    Member

    That link works in Chrome 17, FF 10 & IE9…did you find the problem?

    #96801
    MBAsfoor
    Member

    no not yet

    #96806
    MBAsfoor
    Member
    #96809
    Paulie_D
    Member

    That link doesn’t work unless you are a SItePoint member.

    Frankly, it looks like it’s a local issue since your demo worked fine.

    #96819
    MBAsfoor
    Member

    It’s working after downloading the font and converting it again

    #96821
    MBAsfoor
    Member

    Thank you all for helping

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