Now comes my time to give a little back to this community for what I have learned,
I litterally learned this about... 5 minutes ago but it is VERY useful.
If you want to use your own custom font you will need the font file and upload it to your website (in a folder called fonts or whereever you want it to be but putting it in fonts will keep your server tidy.)
in css we need to put this code:
Code:
@font-face {
font-family:"customfont";
src:url (/font/"customfont.ttf) format("truetype");
obviously replace custom font with the font you want to use.
the next part would be to apply it to a style since you have defind the font and where it is all you need to do now is:
Code:
h1 {
font-family:"customfont";
}
that way anyone can see your website with that font
if anyone notices an error in this, please respond so i can update this post with the correct formula.
Last edited by UUilliam; 01-16-2010 at 09:30 AM..
|