Forums

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

Home Forums CSS Font Face CSS Help Needed – custom font not working in other browsers

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #170291
    bkp2
    Participant

    Hello! I am trying to make my custom font available to view on all browsers. The trouble is, it is only viewable on my computer – it is not viewable from the same IP on my cell phone either. All other browsers it comes up as Arial.. this does not work for the purpose of my clients branding. Here is my code:

    @font-face {
    font-family: ‘fontleroybrownnf’;
    src: url(‘fontleroybrownnf-webfont.eot?#iefix’) format(’embedded-opentype’),
    url(‘fontleroybrownnf-webfont.woff’) format(‘woff’),
    url(‘fontleroybrownnf-webfont.ttf’) format(‘truetype’),
    url(‘fontleroybrownnf-webfont.svg#fontleroybrownnf’) format(‘svg’);

    }

    I have tried everything to make this work and somehow it still does not. I have searched forums high and low and no one seems to have this issue where it works fine on only their computer. The fonts are all uploaded properly in my theme font file, in all formats.

    Can anyone help me?

    Thank you kindly

    #170293
    Paulie_D
    Member

    Looks like a path issue to start with since I assume the fonts are in a separate folder..and we can move on from there.

    #170303
    bkp2
    Participant

    Thanks for your reply

    Can you please explain further and let me know what to do? I am new to all this..

    Thanks so much

    #170371
    David Hosanna
    Participant

    I’m not sure yet. Maybe adding font-weight and font-style can solve your problem. So, something like

    @font-face {
    font-family: ‘fontleroybrownnf’;
    src: url(‘fontleroybrownnf-webfont.eot?#iefix’) format(‘embedded-opentype’),
    url(‘fontleroybrownnf-webfont.woff’) format(‘woff’),
    url(‘fontleroybrownnf-webfont.ttf’) format(‘truetype’),
    url(‘fontleroybrownnf-webfont.svg#fontleroybrownnf’) format(‘svg’);
    font-weight: normal;
    font-style: normal;
    }
    #170375
    Paulie_D
    Member

    The browswer has to be able to locate the fonts in the font folder which, I understand you have.

    If you don’t tell it where they are it won’t know, especially when accessing from an external site.

    I would normally expect to see something like this

    src: url(../fontfolder/‘fontleroybrownnf-webfont.eot?#iefix’) 
    

    etc.

    If you provide a live link we might be able to check for ourselves.

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