Use custom font in html/css

First declare your font in your css file:
@font-face {
font-family: a_cool_font_name;
src: url(‘path/to/cool/font.ttf’);
}

Then add it to your elements
p.custom_font{
font-family: a_cool_font_name; /* no .ttf */
}

ready :)

Share