0

I'm using a font called downlink for my site and I've run into an issue. Everything works perfectly fine when I test my site locally, but when I upload it to the server (via Filezilla) the font is not loaded.

Here's my CSS code for the font:

@font-face {
    font-family: downlink;
    src: url(../fonts/downlink.otf);
}
@font-face {
    font-family: downlink;
    src: url(../fonts/downlinkBold.otf);
    font-weight:bold;
}
@font-face {
    font-family: downlink;
    src: url(../fonts/downlinkItalic.otf);
    font-style:italic;
}
@font-face {
    font-family: downlink;
    src: url(../fonts/downlinkBoldItalic.otf);
    font-weight:bold;
    font-style:italic;
}

I'm quite sure that I've uploaded everything I needed to with Filezilla because if I download all my server contents (well the public html contents) to an empty folder and run it from there, the site still works.

So I'm running dry on ideas to fix this, any help would be very much appreciated.

Barry Michael Doyle
  • 9,333
  • 30
  • 83
  • 143
  • Is it meant to be GET hhtps? – Mathemats Feb 26 '15 at 07:00
  • The errors in the console also contain a status code and message, you should include this information. Otherwise it is not clear if it is e.g. not found or forbidden. – t.niese Feb 26 '15 at 07:03
  • Out of curiousity, I looked for the list of font file name extensions: http://fileinfo.com/filetypes/font seems **.oft** does not include on the list? or my technology is outdated? correct me if Im wrong. Thanks – Vainglory07 Feb 26 '15 at 07:04
  • @Vainglory07 pretty sure it is a type like `hhtps` is. The css file shows `.otf`. But it is bad the _copied_ error has typos. – t.niese Feb 26 '15 at 07:05
  • 1
    1) Why your url contains `www.'mysite'.co.za`? 2) You request `.oft`, but in CSS you specify `.otf` file. – Justinas Feb 26 '15 at 07:06
  • my url is just called 'mysite' to represent where my site is, don't feel like giving it away right now. Sorry for all the typos fixed them now and just realized that my console errors were from previous sessions that I ran, so there aren't any console errors. – Barry Michael Doyle Feb 26 '15 at 07:11

2 Answers2

2

Hi I think you didn't Properly Embed our Font. Please take your font (TTF) format and try to convert Webfont using fontsquirrel or any other converter, than upload your font and style sheet to your server

Karthi Keyan
  • 804
  • 6
  • 18
0

Try this:

  1. First check if your font is accessible through the combined URL.
  2. Second open the webpage and check (using chrome Inspector for instance) if the URL is building correctly.
  3. If none of the shows errors check if the webserver allows the MIME type to be accessed/downloaded
  4. Check this answer to see if it is not a browser support issue: click here

Hope this helps.

Community
  • 1
  • 1
invinciblejai
  • 1,103
  • 1
  • 8
  • 15