CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   General web building (http://www.codingforums.com/forumdisplay.php?f=10)
-   -   File not being found on site - don't know why (http://www.codingforums.com/showthread.php?t=281414)

backa 11-07-2012 02:17 PM

File not being found on site - don't know why
 
When i check the error log for the site I'm doing, it's filled with references to a .eot font file. The file named in the log is definitely there, with the correct name, in the correct place. The referring link is always the css file.
The font family declaration in the css is:
Code:

@font-face {
    font-family: 'BenthamRegular';
    src: url('bentham-webfont.eot');
  src: url('bentham-webfont.eot?#iefix') formstyleat('embedded-opentype'),
        url('bentham-webfont.woff') formstyleat('woff'),
        url('bentham-webfont.ttf') formstyleat('truetype'),
        url('bentham-webfont.svg#benthamRegular') formstyleat('svg');
    font-weight: normal;
    font-style: normal;
}

i'm using another font, in an identical manner, with no problem. what can be causing the error?

VIPStephan 11-07-2012 02:46 PM

Could be an error in the font file itself. Are you able to access the font directly by typing the path into the address bar?
Can you give us a link to a live example?

backa 11-07-2012 04:31 PM

yes I checked and I can access the file.

VIPStephan 11-07-2012 06:23 PM

Do you know what I just noticed?
Code:

@font-face {
    font-family: 'BenthamRegular';
    src: url('bentham-webfont.eot');
  src: url('bentham-webfont.eot?#iefix') formstyleat('embedded-opentype'),
        url('bentham-webfont.woff') formstyleat('woff'),
        url('bentham-webfont.ttf') formstyleat('truetype'),
        url('bentham-webfont.svg#benthamRegular') formstyleat('svg');
    font-weight: normal;
    font-style: normal;
}

That’s crap, it must read “format”. And it is exactly this why the font isn’t used.

backa 11-08-2012 09:07 AM

Well Spotted! Thank you!

what is strange is that only the one file gave an error (i'm using 2 custom fonts, the other one had the error too). i feel quite foolish!

thanks again.


All times are GMT +1. The time now is 12:27 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.