Use own font with CSS

From wiki.network-crawler.de
Jump to: navigation, search

CSS file:

/* use special font: */
@font-face {
    font-family: "King";
    src: url(http://fotografie.2bsolutions.de/fonts/king.ttf) format("truetype");
}

p.customfont { 
    font-family: "King", Verdana, Tahoma;
}
/* special font end */

HTML:

<p class="customfont">Hello world!</p>