how does css fonts work

How do you get a font file

First download the font (if you’re using dafont there should be a download button)

After it’s fully downloaded hold onto it until a menu pops up

After doing that click on the option “uncompress”

After you press that option there should be a file that containd a ttf or an oft(or something) file

If you do see that file put it in a link hosting site. The ones that I uses is either cat box or filegarden (I prefer filegarden since it crash’s less) Note: postimages does not work for this step as it only hosts images

In order to make the font work put in this code in the css section

@font-face { font-family: font family; src: url(ttf/oft file); }

In order to make the font actually work out this in

body { font-family: font family; }

And that is how you get a custom font. If the font doesn’t work try adding !important to the end of the font family in body


Reactions

Comments
Leave a comment

Pressing continue will bring you to the following URL:

Are sure you want to go there?


Continue