Trying to use a custom font on a simple web page and it works except when I invoke the @font-face command it actually prints that on the page. Any CSS experts explain to me what I'm doing wrong here?
It's a page that displays a speedometer. Here's
a link and the code follows:
Code:
@font-face {
font-family: "TexasLED";
src: url(/var/www/fonts/TEXASLED.TTF);
format("truetype");
}
<div style="background-image:url(/images/speedo.gif);
background-repeat:no-repeat;
width:400px;
height:380px;">
<div style="position: absolute; top:160px; left: 120; width:200px;
height:25px; font-family: TexasLED; font-size: 300%; color: #1589FF">
120 mph
</div>