...

View Full Version : Custom Font not working on site



lmorales
06-08-2012, 05:57 PM
trendstudiosorlando.com/test2/index.html

The font is supposed to be bank gothic through out, but it defaults. My css for the font is the same as another website i made which works fine.


@font-face{
font-family: 'BankGothicMdBTMedium';
src: url('bankgthd-webfont.eot');
src: url('bankgthd-webfont.eot?#iefix') format('embedded-opentype');
url('bankgthd-webfont.woff') format('woff');
url('bankgthd-webfont.ttf') format('truetype');
url('bankgthd-webfont.svg#BankGothicMdBTMedium') format('svg');
font-weight: normal;
font-style: normal;
}

VIPStephan
06-08-2012, 06:05 PM
Look if the file path is correct. Currently it assumes the fnt files in the same directory as the CSS where it’s specified.

Ah, no, I see what’s wrong. You have semicolons where you should have commas, in the second src value.

lmorales
06-08-2012, 07:37 PM
I checked and put it in the stylesheets folder, but nothing has changed :(

lmorales
06-08-2012, 07:46 PM
I may be blind at this point lol but I dont see what you mean?

lmorales
06-08-2012, 07:50 PM
Wait i GOT IT! Thanks!

DrDOS
06-09-2012, 04:20 PM
My suggestion would be to specify the entire http path in the @font-face code. Then there will be NO ambiguity.

VIPStephan
06-10-2012, 12:17 AM
My suggestion would be to specify the entire http path in the @font-face code. Then there will be NO ambiguity.

No, that won’t work in Firefox (at least it used to not work) because fonts can only come from the same domain and you can run into trouble if, for example, you have no proper redirection for www/no-www set up, since these are effectively two separate domains. It’s best to specify a relative path, or at least a domain independent absolute path.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum