I'm attempting to get @font-face working with Chrome and Firefox however I'm having no luck.
The code I'm using can be found at http://testing.teachyourselfstuff.com and here
main.css file
@font-face {
font-family: FamilyName;
src: url('http://testing.teachyourselfstuff.com/media/3Dumb.ttf');
}
.3DFont {
font-family: FamilyName, serif;
}
index.html file
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="author" content="Daniel Foreman">
<meta name="description" content="This is my hand coded html5 template.">
<meta name="generator" content="Bluefish 2.2.5" >
<meta name="keywords" content="basic, template, html5, css">
<title>My website</title>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="icon" type="image/x-icon" href="favicon.ico" >
<link rel="author" type="text/plain" href="humans.txt">
</head>
<body>
<p class="3DFont">This is test text.</p>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
</body>
</html>
If someone can point me in the right direction I'll be grateful.