View Full Version : font!


reddragon8
01-13-2006, 04:26 PM
how can i use my own font on my site? I'v uploaded the "font.ttf" whats the code in the css? :) ....ty.. x

luvhartz
01-13-2006, 04:29 PM
body {font-family: yourfontname;}

Change the red, but be aware that if the person viewing the page doesnt have the font downloaded they will see it in their default font :)

reddragon8
01-13-2006, 05:02 PM
body {font-family: yourfontname;}

Change the red, but be aware that if the person viewing the page doesnt have the font downloaded they will see it in their default font :)

Oic....... :( i thought.. if it was uploaded in your directory, then they would be able to see it. is there any way i can do this?

djou
01-13-2006, 06:05 PM
Not many visitors will install a font because you tell them to do so. You will need to specify fonts that will replace yours if it is not installed on the person's computer, and then a generic font family in case the person doesn't have these fonts either. For example:

font-family:"trebuchet ms", tahoma, arial, "sans serif"

If you have Trebuchet MS, you will see the text in Trebuchet MS, else in Tahoma, which will be replaced by Arial if you don't have Tahoma, and if you have neither of these three fonts installed, you will see it in your default sans serif font.

http://en.wikipedia.org/wiki/Typeface#Types_of_font


edit: most people use sans serif fonts for websites. They usually look better on screens.