First of all hello to everyone, this is my first thread!!

Second, i face a problem with a website i am trying to create! I wanna use a font i downloaded by myself but noone gonna have it! So what should i inlude in my Css or Html code in order to download the font in their pcs and see my website with this font and not the deufault??


6 Years
Discussion Span
Last Post by canadian_sars

First of all, you need to have the font in a directory on your server. Then all you have to do is add a style to your main stylesheet.

@font-face {font-family: FontName;src: url('location of font');}

Replacing FontName, obviously, with the name of the font, and the text between the apostrophes with the directory location of the font file on your server.

Then just change the font family of the text on the page to whatever the name of the font is in the above code. For example...

customFont p
font-family: FontName;

Let me know if you need more help.


Wait.. So, is this true, that you can have your text in ANY font you want?? So long that the Font Family is on your server?

It will work on anybodies computer???? This would be so helpful if it were true!!

Please let me know.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.