...

View Full Version : File not being found on site - don't know why



backa
11-07-2012, 02:17 PM
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:

@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?


@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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum