Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-07-2012, 02:17 PM   PM User | #1
backa
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 7
Thanked 3 Times in 3 Posts
backa is an unknown quantity at this point
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?
backa is offline   Reply With Quote
Old 11-07-2012, 02:46 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,604
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 11-07-2012, 04:31 PM   PM User | #3
backa
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 7
Thanked 3 Times in 3 Posts
backa is an unknown quantity at this point
yes I checked and I can access the file.

Last edited by backa; 11-09-2012 at 12:26 PM..
backa is offline   Reply With Quote
Old 11-07-2012, 06:23 PM   PM User | #4
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,604
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
backa (11-08-2012)
Old 11-08-2012, 09:07 AM   PM User | #5
backa
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 7
Thanked 3 Times in 3 Posts
backa is an unknown quantity at this point
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.
backa is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Advertisement
Log in to turn off these ads.