Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install custom font before loading website?

I’ve some custom fonts like Trade Gothic Oblique.ttf, now I’m using this in our website but it does not install before loading the website for installing this font I’ve used the following code:

@font-face

{

font-family: "TadeGothic" , TradeGothic, TradeGothic LT Std;

src: url(../fonts/Trade Gothic LT Std Condensed No. 18.ttf);
src: url(../fonts/Trade Gothic Oblique.ttf);

}

But it does not work. Can you tell me what’s wrong with it?

like image 531
GotiBandhu Huda Avatar asked Mar 06 '26 09:03

GotiBandhu Huda


1 Answers

You might want to check out FontSquirrel at http://www.fontsquirrel.com/fontface. They show you how to do it.

Note, though, that it works differently with IE than with other browsers. I believe IE requires TTF and other browsers require OTF as the embedded font standard.

like image 87
Roy Dictus Avatar answered Mar 09 '26 08:03

Roy Dictus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!